Class: SlackRubyBot::Bot

Inherits:
Commands::Base show all
Defined in:
lib/slack-ruby-bot/bot.rb

Direct Known Subclasses

Testing::WeatherBot

Class Method Summary collapse

Methods inherited from Commands::Base

command, default_command_name, help, invoke, match, operator, scan, send_gif, send_message, send_message_with_gif

Methods included from Loggable

included

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

.instanceObject



9
10
11
# File 'lib/slack-ruby-bot/bot.rb', line 9

def self.instance
  SlackRubyBot::App.instance
end

.runObject



5
6
7
# File 'lib/slack-ruby-bot/bot.rb', line 5

def self.run
  instance.run
end