Class: Lita::Commands::SuspensionCandidates
- Inherits:
-
Object
- Object
- Lita::Commands::SuspensionCandidates
- Defined in:
- lib/lita/commands/suspension_candidates.rb
Constant Summary collapse
- MAX_WEEKS_WITHOUT_LOGIN =
8
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
6 7 8 |
# File 'lib/lita/commands/suspension_candidates.rb', line 6 def name 'suspension-candidates' end |
#run(robot, target, gateway, opts = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/lita/commands/suspension_candidates.rb', line 10 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 |