From f206fac0688f05cb01b29352c49336aeb4fda3a8 Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Thu, 27 Dec 2018 23:44:12 -0600 Subject: [PATCH] fixed hostname again --- run.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.rb b/run.rb index 60f2bae..dddfe52 100755 --- a/run.rb +++ b/run.rb @@ -107,7 +107,7 @@ def handle_message(message) #end when '/location', '/whereareyou' if message_from_admin?(message, adm) || is_chat_authorized?(message, @auth_chat) - reply = "I am currently located at:\n\nHost: #{`echo $HOST`}ExtIP: #{`curl myip.contegix.com 2>/dev/null`}" + reply = "I am currently located at:\n\nHost: #{`head -n1 /etc/hostname`}ExtIP: #{`curl myip.contegix.com 2>/dev/null`}" else reply = "Refusal: I am not authorized to provide this information here." end