Class: SlackRubyBot::Commands::Hi

Inherits:
Base
  • Object
show all
Defined in:
lib/slack-ruby-bot/commands/hi.rb

Class Method Summary collapse

Methods inherited from Base

command, default_command_name, logger, operator, responds_to_command?, responds_to_operator?, send_message, send_message_with_gif

Class Method Details

.call(data, _command, _arguments) ⇒ Object



4
5
6
# File 'lib/slack-ruby-bot/commands/hi.rb', line 4

def self.call(data, _command, _arguments)
  send_message_with_gif data.channel, "Hi <@#{data.user}>!", 'hi'
end