reply="I am #{@botname}, and I am here to provide temperature information from various sensors. Currently I can retrieve information "+
reply="I am #{@botname}, and I am here to provide temperature information from various sensors. Currently I can retrieve information "+
"from temperature sensors. In a future version, I will also report when temperatures are out of a specified range through regular checks.\n\n"+
"from temperature sensors. In a future version, I will also report when temperatures are out of a specified range through regular checks.\n\n"+
"Commands available:\n/start (Shows this message)\n/check or /c (Show a specific temperature interactively)\n/report or /r (Show all temperatures)\n"+
"Commands available:\n/start or /help (Shows this message)\n/check or /c (Show a specific temperature interactively)\n/report or /r (Show all temperatures)\n"+
"/simple or /s (Show a simplified report)\n\nExtra functions:\n/whoami or /chatinfo (Provides IDs for internal use)\n/whereareyou or /location (Provides hostname for bot server)\n\n"+
"/simple or /s (Show a simplified report)\n\nExtra functions:\n/whoami or /chatinfo (Provides IDs for internal use)\n/whereareyou or /location (Provides hostname for bot server)\n\n"+
"Check again later to see if any new functions have been added, or use /patchnotes to learn about recent updates.\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/heatbot"
"You can also view the source code at the following location:\nhttps://git.skyfall.tech/skyfall/heatbot"
ifmessage_from_admin?(message,adm)
ifmessage_from_admin?(message,adm)
msg_from_admin=true
msg_from_admin=true
end
end
STDOUT.flush
ifis_chat_authorized?(message,@auth_chat)
ifis_chat_authorized?(message,@auth_chat)
chat_authorized=true
chat_authorized=true
end
end
STDOUT.flush
if!msg_from_admin&&!chat_authorized
if!msg_from_admin&&!chat_authorized
ifmessage.from.id==message.chat.id
ifmessage.from.id==message.chat.id
reply=reply+"\n\nWARNING: I am not authorized to work with you directly. My functionality is limited."
reply=reply+"\n\nWARNING: I am not authorized to work with you directly. My functionality is limited."