Class: Lita::Commands::TwoFactorStats
- Inherits:
-
Object
- Object
- Lita::Commands::TwoFactorStats
- Defined in:
- lib/lita/commands/two_factor_stats.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
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.(target, msg) if msg robot.(target, "No stats found") if msg.nil? && opts[:negative_ack] end |