lib/slack-ruby-bot/commands/unknown.rb in slack-ruby-bot-0.5.5 vs lib/slack-ruby-bot/commands/unknown.rb in slack-ruby-bot-0.6.0
- old
+ new
@@ -2,10 +2,10 @@
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'
+ client.say(channel: data.channel, text: "Sorry <@#{data.user}>, I don't understand that command!", gif: 'idiot')
end
end
end
end