From 07819c0bc6ec938e14f49bfb8a849a6454721026 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Thu, 3 Jun 2021 23:15:18 +0200 Subject: [PATCH] update V2 (cleanunp, basic multiple choice, embeds) --- bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 039e565..c4147bf 100644 --- a/bot.py +++ b/bot.py @@ -173,7 +173,7 @@ class QuizClient(discord.Client): async def _post_embed(self, embed): if len(embed) < 2: return - + if embed[0] == "Image": picture = discord.Embed() picture.set_image(url=embed[1]) @@ -297,7 +297,6 @@ class QuizClient(discord.Client): for emoji, player in self.players.items(): await self.channel.send( str(emoji) + ": " + str((await player.dm_channel.history(limit=1).flatten())[0].content)) - await asyncio.sleep(0.5) # TODO: Keep this? # Correct answer and scores amsg = await self._post_answer(question)