Sha256: 51e5302e6abee6c32c0fd4784649e4642b5313b0d5f2e93487ca9f939b7668f4

Contents?: true

Size: 391 Bytes

Versions: 10

Compression:

Stored size: 391 Bytes

Contents

module SlackRubyBot
  class Bot < SlackRubyBot::Commands::Base
    delegate :client, to: :instance

    def self.run
      instance.run
    end

    def self.instance
      SlackRubyBot::App.instance
    end

    def self.call(client, data, _match)
      client.say(channel: data.channel, text: "Sorry <@#{data.user}>, I don't understand that command!", gif: 'understand')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
slack-ruby-bot-0.12.0 lib/slack-ruby-bot/bot.rb
slack-ruby-bot-0.11.2 lib/slack-ruby-bot/bot.rb
slack-ruby-bot-0.11.1 lib/slack-ruby-bot/bot.rb
slack-ruby-bot-0.11.0 lib/slack-ruby-bot/bot.rb
slack-ruby-bot-0.10.5 lib/slack-ruby-bot/bot.rb
slack-ruby-bot-0.10.4 lib/slack-ruby-bot/bot.rb
slack-ruby-bot-0.10.3 lib/slack-ruby-bot/bot.rb
slack-ruby-bot-0.10.2 lib/slack-ruby-bot/bot.rb
slack-ruby-bot-0.10.1 lib/slack-ruby-bot/bot.rb
slack-ruby-bot-0.10.0 lib/slack-ruby-bot/bot.rb