From 55ebcbfdc7da0655a120811cc91dcff1bc7b404f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 19 Jul 2016 13:59:56 +0200 Subject: [PATCH] yes --- bot.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bot.py b/bot.py index d80df41b..d5fced24 100644 --- a/bot.py +++ b/bot.py @@ -342,13 +342,11 @@ while True: break else: if member['status'] == "online": - if 'game' in member: - m['gamename'] = member['game']['name'] - m['emoji'] = chr(128308) - else: - m['emoji'] = chr(128309) - else: + m['emoji'] = chr(128308) + elif member['status'] == "idle": m['emoji'] = chr(9899) + if 'game' in member: + m['gamename'] = member['game']['name'] m['name'] = member['username'] if 'gamename' in m and 'channelname' in m: tosend += "{emoji} *{channelname}* {name} | _{gamename}_\n".format(**m)