Class: ESM::Command::Pictures::Meow

Inherits:
ApplicationCommand show all
Defined in:
lib/esm/command/pictures/meow.rb

Constant Summary collapse

SUB_REDDIT =
%w[lolcats catpics catpictures Chonkers CatsStandingUp].freeze

Instance Method Summary collapse

Instance Method Details

#on_executeObject



22
23
24
25
26
27
28
29
# File 'lib/esm/command/pictures/meow.rb', line 22

def on_execute
  send_waiting_message
  check_for_empty_link!
  remove_waiting_message

  # Send the link
  reply(link)
end