lib/slack-ruby-bot/commands/unknown.rb in slack-ruby-bot-0.2.0 vs lib/slack-ruby-bot/commands/unknown.rb in slack-ruby-bot-0.3.0
- old
+ new
@@ -1,8 +1,10 @@
module SlackRubyBot
module Commands
class Unknown < Base
- def self.call(data, _command, _arguments)
+ match(/^(?<bot>\w*)[\s]*(?<expression>.*)$/)
+
+ def self.call(data, _match)
send_message_with_gif data.channel, "Sorry <@#{data.user}>, I don't understand that command!", 'idiot'
end
end
end
end