Class: StallmanBot::Bot
- Inherits:
-
Object
- Object
- StallmanBot::Bot
- Defined in:
- lib/stallman_bot/bot.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Bot
constructor
A new instance of Bot.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/stallman_bot/bot.rb', line 16 def run puts "Stallman_bot running... (DEBUG: #{@debug})" if @debug local_handler elsif @token.empty? puts "Invalid/empty token: #{@token}" exit else bot_handler end end |