class StallmanBot::Commands::Base
Public Class Methods
run(bot, id, message)
click to toggle source
# File lib/stallman_bot/commands/base.rb, line 4 def self.run(bot, id, message) if bot.nil? || id.nil? puts message else bot.api.send_message(chat_id: id, text: message) end end