Class: Lita::Commands::DeletionCandidates

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

Constant Summary collapse

MAX_WEEKS_SUSPENDED =
26

Instance Method Summary collapse

Instance Method Details

#nameObject



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.send_message(target, msg) if msg
  robot.send_message(target, "No users found") if msg.nil? && opts[:negative_ack]
end