From a86af9b7960dd56475cc41353b3aae81f6edd3ab Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Mon, 28 Jun 2021 11:50:33 +0200 Subject: [PATCH] Stop met verwerken van highscores van de playlist --- General.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/General.py b/General.py index 3cf5a3f..c424a23 100644 --- a/General.py +++ b/General.py @@ -145,15 +145,11 @@ class General(commands.Cog): @commands.command(pass_context=True) @asyncio.coroutine def playlist(self, ctx): - """HDcon2020 playlist""" + """HDcon2021 playlist""" muzak_url = 'https://hdcon-muzak.herokuapp.com' 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 += '*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) @commands.command(pass_context=True, hidden=True)