Sha256: fcc3873c8a99a6f5da0a53127c1a4c4969c3721e89a25d17cf136ad61282e099
Contents?: true
Size: 479 Bytes
Versions: 3
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true 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) true end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems