Module: Bot

Defined in:
lib/bender/bot.rb

Class Method Summary collapse

Class Method Details

.run!(options) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/bender/bot.rb', line 15

def self.run! options
  BenderBot.class_variable_set :@@options, options
  Bot::Plugin.plugins = [ BenderBot ]
  conn = Bot::Connection.new
  conn.store['users'] ||= {}
  Bot::Web.set :connection, conn.connect
  return conn
end