From dc5012ba7ea5307a67a2a8c878f9e3a6ee344e45 Mon Sep 17 00:00:00 2001 From: Yannick Gloster Date: Sun, 1 Nov 2020 23:27:22 +0000 Subject: [PATCH] Added fix for map end Should speed up the deletion of channels --- cogs/csgo.py | 1 - utils/server.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cogs/csgo.py b/cogs/csgo.py index 2f7b13a..3ead10d 100644 --- a/cogs/csgo.py +++ b/cogs/csgo.py @@ -523,7 +523,6 @@ async def ready_up(self, message: discord.Message, members: List[discord.Member] for member in members: if member not in user_reactions: ready = False - break else: self.bot.users_not_ready.remove(member) diff --git a/utils/server.py b/utils/server.py index 83560db..82b9663 100644 --- a/utils/server.py +++ b/utils/server.py @@ -117,7 +117,7 @@ async def _handler(self, request: web.Request) -> web.Response: score_embed.set_footer(text="🟢 Live") await server.score_message.edit(embed=score_embed) - elif get5_event['event'] == 'series_end' or get5_event['event'] == 'series_cancel': + elif get5_event['event'] == 'series_end' or get5_event['event'] == 'series_cancel' or get5_event['event'] == 'map_end': if get5_event['event'] == 'series_end': await server.score_message.edit(content='Game Over') elif get5_event['event'] == 'series_cancel':