Class: StallmanBot::Commands::Base
- Inherits:
-
Object
- Object
- StallmanBot::Commands::Base
- Defined in:
- lib/stallman_bot/commands/base.rb
Class Method Summary collapse
Class Method Details
.run(bot, id, message) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/stallman_bot/commands/base.rb', line 4 def self.run(bot, id, ) if bot.nil? || id.nil? puts else bot.api.(chat_id: id, text: ) end end |