Class: SlackRubyBot::Commands::Hi
- Defined in:
- lib/slack-ruby-bot/commands/hi.rb
Class Method Summary collapse
Methods inherited from Base
attachment, bot_matcher, command, command_name_from_class, help, inherited, invoke, match, operator, routes, scan
Methods included from Loggable
Class Method Details
.call(client, data, _match) ⇒ Object
11 12 13 |
# File 'lib/slack-ruby-bot/commands/hi.rb', line 11 def self.call(client, data, _match) client.say(channel: data.channel, text: "Hi <@#{data.user}>!") end |