1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2016-07-19 13:59:56 +02:00
parent 487c47fbc3
commit 55ebcbfdc7

10
bot.py
View file

@ -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)