Class: StallmanBot::Commands::Status

Inherits:
Base
  • Object
show all
Defined in:
lib/stallman_bot/commands/status.rb

Class Method Summary collapse

Class Method Details

.run(bot, id, listening = nil) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/stallman_bot/commands/status.rb', line 6

def self.run(bot, id, listening = nil)
  if listening
    super(bot, id, Locale.t('command.status.listening'))
  else
    super(bot, id, Locale.t('command.status.sleeping'))
  end
  listening
end