Merge branch 'dev' of skyfall/empyrion-bot into master

dev
Aaron Johnson 7 years ago committed by Gitea
commit e9eb437aff

@ -1,3 +1,4 @@
botname: 'Bob'
token: '<your-bot-token>'
telnet:
host: '<your empyrion host address>'

@ -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 $HOSTNAME`}ExtIP: #{`curl myip.contegix.com 2>/dev/null`}"
reply = "I am currently located at:\n\nHost: #{`echo $HOST`}ExtIP: #{`curl myip.contegix.com 2>/dev/null`}"
else
reply = "Refusal: I am not authorized to provide this information here."
end

Loading…
Cancel
Save