Class: BotMob::Application
- Inherits:
-
Object
- Object
- BotMob::Application
- Extended by:
- Forwardable
- Defined in:
- lib/bot_mob/application.rb
Overview
## BotMob::Application
This is the base class for BotMob.
Instance Method Summary collapse
Instance Method Details
#start! ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/bot_mob/application.rb', line 12 def start! BotMob.logger.info("=> BotMob #{BotMob::VERSION} application starting") roster.load wire.listen do |bot| roster.connect(bot) end loop do sleep(10) # Avoid polling at all for the time being # roster.load if roster.available? && !wire.available? end end |