Class: Lita::Commands::TwoFactorStats

Inherits:
Object
  • Object
show all
Defined in:
lib/lita/commands/two_factor_stats.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



7
8
9
# File 'lib/lita/commands/two_factor_stats.rb', line 7

def name
  'two-factor-stats'
end

#run(robot, target, gateway, opts = {}) ⇒ Object



11
12
13
14
15
# File 'lib/lita/commands/two_factor_stats.rb', line 11

def run(robot, target, gateway, opts = {})
  msg = build_msg(gateway)
  robot.send_message(target, msg) if msg
  robot.send_message(target, "No stats found") if msg.nil? && opts[:negative_ack]
end