From ac47bcf4f300285ec9fe52a5927516b617300010 Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Sun, 14 Jul 2019 02:28:41 -0500 Subject: [PATCH] Added color and style consistency to /status log messages --- commands.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.rb b/commands.rb index 073a587..a9c3b14 100644 --- a/commands.rb +++ b/commands.rb @@ -74,10 +74,10 @@ def process_command_srvstatus(message, command, adm) print 'Checking connectivity to Empyrion service... ' STDOUT.flush if system("nc -zvw3 #{telnet['host']} #{telnet['port']} >/dev/null 2>&1") - print "Server responded!\nSending message receipt... " + print "OK\n".green.bold + "Sending message receipt... " STDOUT.flush if `./scripts/srvstatus.receipt #{@conf['token']} #{message.chat.id}` - print "Receipt sent!\nFetching details...\n" + print "OK\n".green.bold + "Fetching details...\n" else print "Receipt FAILED to send (non-zero exit code on scripts/srvstatus.receipt) !!!\nContinuing to fetch details anyway...\n".red.bold end