Sha256: dc4e772217e23160c6c03d6ab1bd9158d48db4adfe5ec7d9dd51e1f6323ba43f

Contents?: true

Size: 304 Bytes

Versions: 7

Compression:

Stored size: 304 Bytes

Contents

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

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
slack-ruby-bot-bhe-0.5.5.3 lib/slack-ruby-bot/commands/unknown.rb
slack-ruby-bot-0.5.5 lib/slack-ruby-bot/commands/unknown.rb
slack-ruby-bot-0.5.4 lib/slack-ruby-bot/commands/unknown.rb
slack-ruby-bot-0.5.3 lib/slack-ruby-bot/commands/unknown.rb
slack-ruby-bot-0.5.2 lib/slack-ruby-bot/commands/unknown.rb
slack-ruby-bot-0.5.1 lib/slack-ruby-bot/commands/unknown.rb
slack-ruby-bot-0.5.0 lib/slack-ruby-bot/commands/unknown.rb