lib/slack-ruby-bot/commands/unknown.rb in slack-ruby-bot-0.3.1 vs lib/slack-ruby-bot/commands/unknown.rb in slack-ruby-bot-0.4.0
- old
+ new
@@ -1,11 +1,11 @@
module SlackRubyBot
module Commands
class Unknown < Base
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'
+ 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