Sha256: c73970ed671382b854ac6ae4759dfe1e721e19c50142d8b7dc6b4218195e93b3
Contents?: true
Size: 872 Bytes
Versions: 3
Compression:
Stored size: 872 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: command_id: :get_bot_logs # helpadmin: def get_bot_logs(dest, user, typem) save_stats(__method__) if config.team_id_masters.include?("#{user.team_id}_#{user.name}") 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
3 entries across 3 versions & 1 rubygems