Added aliases for /status

dev
Aaron Johnson 5 years ago
parent 9e0464d9a6
commit 33cf62044c

@ -38,7 +38,8 @@ end
def process_command_start(message, command, adm)
reply = "Introduction: I am #{@botname}, and I am here to make life easier for meatbag admins like you. Currently I can retrieve information " +
"from an Empyrion server as well as kill the server process. I also have some pretty sweet dance moves.\n\n" +
"Commands available:\n/start or /help (Shows this message)\n/voice or /chat (Shows voice chat info)\n/srvstart (Currently non-functional)\n/srvstop\n/status\n/whoami or /chatinfo\n/whereareyou or /location\n\n" +
"Commands available:\n/start or /help (Shows this message)\n/voice or /chat (Shows voice chat info)\n/srvstart (Currently non-functional)\n/srvstop\n" +
"/status (show version and online players)\n/whoami or /chatinfo\n/whereareyou or /location\n\n" +
"Check again later to see if any new functions have been added, or use /patchnotes to learn about recent updates.\n" +
"You can also view the source code at the following location:\nhttps://git.skyfall.tech/skyfall/empyrion-bot"
if message_from_admin?(message, adm)

@ -328,8 +328,11 @@ def handle_message(message)
when '/srvstop'
reply = process_command_srvstop(message, command, adm)
send_message(message.chat.id, reply)
when '/status'
when '/status', '/stat', '/stats', '/list', '/check'
reply = process_command_srvstatus(message, command, adm)
if command == '/check'
reply = "Hi Matt, here's the /status.\n\n" + reply
end
send_message(message.chat.id, reply)
when '/patch', '/patchnotes'
reply = process_command_patchnotes(message, command, adm)

Loading…
Cancel
Save