1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

waaaaaaaaaaaaaaaaaaaaaa

This commit is contained in:
Steffo 2016-09-04 20:35:45 +02:00
parent b4d1d3a8f6
commit 6c7ad3d8e7

7
bot.py
View file

@ -292,11 +292,11 @@ def automah():
def cv():
print("@" + username + ": /roll")
# Elenco di tutte le persone online su Discord
tosend = "*Su Discord ora:*\n"
r = discord.getwidgetdata("176353500710699008")
musicstatus = str()
musicchannel = str()
for member in r['members']:
m = dict()
if 'bot' not in member or not member['bot']:
@ -331,9 +331,8 @@ def cv():
# Controlla se l'utente è royal music
elif member['id'] == "176358898851250176":
if 'game' in member:
musicchannel = discord.getchannelname(r, member['channel_id'])
musicstatus = "{emoji} *{channelname}* {songname}\n".format(emoji="\U0001F3B5",
channelname=musicchannel,
musicstatus = "{emoji} *{channelname}* {songname}\n" \
.format(emoji="\U0001F3B5", channelname=discord.getchannelname(r, member['channel_id']),
songname=member['game']['name'])
if musicstatus != "":
tosend += musicstatus