Sha256: 70052553d18ca16cbefb54bc8494f89aa6089acbe928f05626550bf8db22d74d

Contents?: true

Size: 448 Bytes

Versions: 2

Compression:

Stored size: 448 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)
          true
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.12.3 lib/slack-ruby-bot-server/ext/activerecord/slack-ruby-bot/commands/base.rb
slack-ruby-bot-server-0.12.2 lib/slack-ruby-bot-server/ext/activerecord/slack-ruby-bot/commands/base.rb