Stop met verwerken van highscores van de playlist
This commit is contained in:
+1
-5
@@ -145,15 +145,11 @@ class General(commands.Cog):
|
|||||||
@commands.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def playlist(self, ctx):
|
def playlist(self, ctx):
|
||||||
"""HDcon2020 playlist"""
|
"""HDcon2021 playlist"""
|
||||||
muzak_url = 'https://hdcon-muzak.herokuapp.com'
|
muzak_url = 'https://hdcon-muzak.herokuapp.com'
|
||||||
data = json.loads(requests.get(muzak_url + '/stroopwafel').content) # als dit faalt yolo no catch
|
data = json.loads(requests.get(muzak_url + '/stroopwafel').content) # als dit faalt yolo no catch
|
||||||
msg = 'Stemmen en nomineren kan hier: {}\n'.format(muzak_url)
|
msg = 'Stemmen en nomineren kan hier: {}\n'.format(muzak_url)
|
||||||
msg += '*Er zijn al {} nummers genomineerd*\n'.format(data['stemCount'])
|
msg += '*Er zijn al {} nummers genomineerd*\n'.format(data['stemCount'])
|
||||||
msg += '**High scores:**\n```'
|
|
||||||
for user in data['userList']:
|
|
||||||
msg += '{} {}\n'.format((user['name']+":").ljust(9), user['score'])
|
|
||||||
msg += '```'
|
|
||||||
yield from ctx.channel.send(msg)
|
yield from ctx.channel.send(msg)
|
||||||
|
|
||||||
@commands.command(pass_context=True, hidden=True)
|
@commands.command(pass_context=True, hidden=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user