From 33cf62044cbe56460ece59549c1291eb09130815 Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Sun, 30 Aug 2020 16:40:04 -0500 Subject: [PATCH] Added aliases for /status --- commands.rb | 3 ++- run.rb | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/commands.rb b/commands.rb index 2ac7f14..8356db7 100644 --- a/commands.rb +++ b/commands.rb @@ -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) diff --git a/run.rb b/run.rb index 87df885..9d973f7 100755 --- a/run.rb +++ b/run.rb @@ -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)