Commit 02cdab5f authored by Fred's avatar Fred

Add emojis to the status message 馃ズ馃ズ馃ズ

parent 349923d7
......@@ -14,7 +14,12 @@ bot = Bot(TOKEN)
def bits_handler(text):
msg = json.loads(text)
try:
bot.edit_message_text("POuL HQ is now {}".format(msg["status"]["value"]), CHAT_ID, MESSAGE_ID)
status = msg["status"]["value"]
emoji = "馃敶馃敶"
if "open" in status:
emoji = "馃煝馃煝"
bot.edit_message_text("{emoji} POuL HQ is now {message} {emoji}".format(
emoji=emoji, message=status), CHAT_ID, MESSAGE_ID)
except:
pass
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment