Sha256: 5d27fb92129f26261a8273ed30e9ebfa83ca9e94944589c35177b20b8bceb9eb

Contents?: true

Size: 311 Bytes

Versions: 10

Compression:

Stored size: 311 Bytes

Contents

module SlackRubyBot
  module Commands
    class Unknown < Base
      match(/^(?<bot>\S*)[\s]*(?<expression>.*)$/)

      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
end

Version data entries

10 entries across 10 versions & 1 rubygems

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