From a032343fd5866579ef6e53d3acc960d39c7c2a7d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 19 Jul 2016 12:34:05 +0200 Subject: [PATCH] legit --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 0cfdc8b5..816de821 100644 --- a/bot.py +++ b/bot.py @@ -348,7 +348,7 @@ while True: else: emoji = chr(9899) name = member['username'] - if gamename in locals() and channelname in locals(): + if 'gamename' in locals() and 'channelname' in locals(): tosend += "{emoji} *{channelname}* {name} | _{gamename}_".format(**locals()) telegram.sendmessage(tosend, sentin, source) elif text.startswith('/online'):