Sha256: a527d542c6e3d4c9f98d4142b43e29a7183546e91f565661d6497824b83b5843
Contents?: true
Size: 702 Bytes
Versions: 6
Compression:
Stored size: 702 Bytes
Contents
class SlackSmartBot # helpadmin: ---------------------------------------------- # helpadmin: `start bot` # helpadmin: `start this bot` # helpadmin: the bot will start to listen # helpadmin: You can use this command only if you are an admin user # helpadmin: def start_bot(dest, from) if config.admins.include?(from) #admin user respond "This bot is running and listening from now on. You can pause again: pause this bot", dest @status = :on unless config.on_master_bot send_msg_channel config.master_channel, "Changed status on #{config.channel} to :on" end else respond "Only admin users can change my status", dest end end end
Version data entries
6 entries across 6 versions & 1 rubygems