mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
e invece
This commit is contained in:
parent
c46d607bb1
commit
81ee74d770
1 changed files with 3 additions and 3 deletions
6
bot.py
6
bot.py
|
@ -328,9 +328,9 @@ while True:
|
||||||
for member in r['members']:
|
for member in r['members']:
|
||||||
# Credo di aver scritto il peggior algoritmo di sempre. gg me
|
# Credo di aver scritto il peggior algoritmo di sempre. gg me
|
||||||
if 'channel_id' in member:
|
if 'channel_id' in member:
|
||||||
if deaf or self_deaf:
|
if member['deaf'] or member['self_deaf']:
|
||||||
emoji = chr(128263)
|
emoji = chr(128263)
|
||||||
elif mute or self_mute:
|
elif member['mute'] or member['self_mute']:
|
||||||
emoji = chr(128264)
|
emoji = chr(128264)
|
||||||
else:
|
else:
|
||||||
emoji = chr(128266)
|
emoji = chr(128266)
|
||||||
|
@ -349,7 +349,7 @@ while True:
|
||||||
emoji = chr(9899)
|
emoji = chr(9899)
|
||||||
name = member['username']
|
name = member['username']
|
||||||
if gamename in locals() and channelname in locals():
|
if gamename in locals() and channelname in locals():
|
||||||
tosend += "{emoji} *{channelname}* {name} | _{gamename}_"
|
tosend += "{emoji} *{channelname}* {name} | _{gamename}_".format(**locals())
|
||||||
telegram.sendmessage(tosend, sentin, source)
|
telegram.sendmessage(tosend, sentin, source)
|
||||||
elif text.startswith('/online'):
|
elif text.startswith('/online'):
|
||||||
# Elenco di tutte le persone online su Steam
|
# Elenco di tutte le persone online su Steam
|
||||||
|
|
Loading…
Reference in a new issue