Sha256: 7d218de6cb1ff02c75ff24150dfdb46e194cae05804f037affe9747c37be0a49
Contents?: true
Size: 797 Bytes
Versions: 18
Compression:
Stored size: 797 Bytes
Contents
class SlackSmartBot # helpadmin: ---------------------------------------------- # helpadmin: `get bot logs` # helpadmin: To see the bot logs # helpadmin: You can use this command only if you are a Master admin user and if you are in a private conversation with the bot # helpadmin: def get_bot_logs(dest, from, typem) save_stats(__method__) if config.masters.include?(from) and typem==:on_dm #master admin user respond 'Remember this data is private' send_file(dest, "Logs for #{config.channel}", "#{config.path}/logs/#{config.log_file}", 'Remember this data is private', 'text/plain', "text") else respond "Only master admin users on a private conversation with the bot can get the bot logs.", dest end end end
Version data entries
18 entries across 18 versions & 1 rubygems