Class: ESM::Command::Server::Info
- Inherits:
-
ApplicationCommand
- Object
- Base
- ApplicationCommand
- ESM::Command::Server::Info
- Defined in:
- lib/esm/command/server/info.rb
Defined Under Namespace
Modules: V1
Instance Method Summary collapse
Instance Method Details
#on_execute ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/esm/command/server/info.rb', line 38 def on_execute # Ensure we were given a target or territory ID check_for_no_target! # Territory ID takes priority since both arguments are optional # and both can be provided # # Reasoning: # Given the weird scenario, user gives a mention plus a territory ID thinking # that it will do some filter... = if arguments.territory_id.present? query_for_territory_info! else query_for_player_info! end reply() end |