Class: Lita::Commands::DeletionCandidates
- Inherits:
-
Object
- Object
- Lita::Commands::DeletionCandidates
- Defined in:
- lib/lita/commands/deletion_candidates.rb
Constant Summary collapse
- MAX_WEEKS_SUSPENDED =
26
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
7 8 9 |
# File 'lib/lita/commands/deletion_candidates.rb', line 7 def name 'deletion-candidates' end |
#run(robot, target, gateway, opts = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/lita/commands/deletion_candidates.rb', line 11 def run(robot, target, gateway, opts = {}) msg = build_msg(gateway) robot.(target, msg) if msg robot.(target, "No users found") if msg.nil? && opts[:negative_ack] end |