Class: ESM::Command::Server::Uptime

Inherits:
ApplicationCommand show all
Defined in:
lib/esm/command/server/uptime.rb

Instance Method Summary collapse

Instance Method Details

#on_executeObject



25
26
27
28
29
30
31
32
# File 'lib/esm/command/server/uptime.rb', line 25

def on_execute
  embed =
    ESM::Embed.build do |e|
      e.description = I18n.t("commands.uptime.server_uptime", server: target_server.server_id, time: target_server.uptime)
    end

  reply(embed)
end