-
-
Save anonymous/a9d94f5d23fb2d8aef47a87935237656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sequel' | |
require 'sinatra' | |
class TwitchBot | |
def self.start(db_config, irc_config) | |
print 'Connecting to database............' | |
@db = Sequel.connect db_config | |
puts 'Done.' | |
print 'Connecting to IRC............' | |
# stall until irc.rb runs and prints "connected" | |
puts 'Done.' | |
print 'Starting web server............' | |
# something | |
puts 'Done.' | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'isaac' | |
configure do |c| | |
c.nick = 'bot' | |
c.server = 'irc.asdf.asdf' | |
c.port = 6667 | |
c.password = '' | |
c.verbose = false | |
end | |
on :connect do | |
puts 'connected' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment