Class: Lita::Commands::EmptyGroups
- Inherits:
-
Object
- Object
- Lita::Commands::EmptyGroups
- Defined in:
- lib/lita/commands/empty_groups.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
6 7 8 |
# File 'lib/lita/commands/empty_groups.rb', line 6 def name 'empty-groups' end |
#run(robot, target, gateway, opts = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/lita/commands/empty_groups.rb', line 10 def run(robot, target, gateway, opts = {}) msg = build_msg(gateway) robot.(target, msg) if msg robot.(target, "No groups found") if msg.nil? && opts[:negative_ack] end |