Class: ESM::Command::Pictures::Doggo

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

Constant Summary collapse

SUB_REDDIT =
%w[dogpictures rarepuppers puppies].freeze

Instance Method Summary collapse

Instance Method Details

#on_executeObject



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

def on_execute
  send_waiting_message
  check_for_empty_link!
  remove_waiting_message

  # Send the link
  reply(link)
end