Sha256: d62028843dddbd944d0b266bd79d19cf4727c22a0ebe8cfbf1397f203c80341c
Contents?: true
Size: 462 Bytes
Versions: 11
Compression:
Stored size: 462 Bytes
Contents
module SlackRubyBot module Commands class Base class << self alias _invoke invoke def invoke(client, data) _invoke client, data rescue StandardError => e logger.info "#{name.demodulize.upcase}: #{client.owner}, #{e.class}: #{e}" logger.debug e.backtrace.join("\n") client.say(channel: data.channel, text: e.message, gif: 'error') true end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems