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

attachment, bot_matcher, command, command_name_from_class, help, inherited, invoke, match, operator, routes, scan

Methods included from Loggable

included

Class Method Details

.call(client, data, _match) ⇒ Object



15
16
17
# File 'lib/slack-ruby-bot/bot.rb', line 15

def self.call(client, data, _match)
  client.say(channel: data.channel, text: "Sorry <@#{data.user}>, I don't understand that command!")
end

.instanceObject



11
12
13
# File 'lib/slack-ruby-bot/bot.rb', line 11

def self.instance
  SlackRubyBot::App.instance
end

.runObject



7
8
9
# File 'lib/slack-ruby-bot/bot.rb', line 7

def self.run
  instance.run
end