Class: SlackRubyBot::Bot
Class Method Summary
collapse
command, default_command_name, invoke, match, operator, send_gif, send_message, send_message_with_gif
Class Method Details
.call(client, data, _match) ⇒ Object
13
14
15
|
# File 'lib/slack-ruby-bot/bot.rb', line 13
def self.call(client, data, _match)
client.say(channel: data.channel, text: "Sorry <@#{data.user}>, I don't understand that command!", gif: 'idiot')
end
|
.instance ⇒ Object
9
10
11
|
# File 'lib/slack-ruby-bot/bot.rb', line 9
def self.instance
SlackRubyBot::App.instance
end
|
.run ⇒ Object
5
6
7
|
# File 'lib/slack-ruby-bot/bot.rb', line 5
def self.run
instance.run
end
|