|
|
@ -127,7 +127,7 @@ def handle_message(message)
|
|
|
|
reply = process_command_patchnotes(message, command, adm)
|
|
|
|
reply = process_command_patchnotes(message, command, adm)
|
|
|
|
when '/location', '/whereareyou'
|
|
|
|
when '/location', '/whereareyou'
|
|
|
|
if message_from_admin?(message, adm) || is_chat_authorized?(message, @auth_chat)
|
|
|
|
if message_from_admin?(message, adm) || is_chat_authorized?(message, @auth_chat)
|
|
|
|
reply = "I am currently located at:\n\nHost: #{`head -n1 /etc/hostname`}ExtIP: #{`curl myip.contegix.com 2>/dev/null`}"
|
|
|
|
reply = "I am currently located at:\n\nHost: #{`head -n1 /etc/hostname`}ExtIP: #{`curl icanhazip.com 2>/dev/null`}"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
reply = "Refusal: I am not authorized to provide this information here."
|
|
|
|
reply = "Refusal: I am not authorized to provide this information here."
|
|
|
|
end
|
|
|
|
end
|
|
|
|