diff --git a/discordbot/titanembeds/redisqueue.py b/discordbot/titanembeds/redisqueue.py index 104ad6d..43de227 100644 --- a/discordbot/titanembeds/redisqueue.py +++ b/discordbot/titanembeds/redisqueue.py @@ -36,7 +36,6 @@ class RedisQueue: await self.bot.wait_until_ready() subscriber = await self.sub_connection.start_subscribe() await subscriber.subscribe(["discord-api-req"]) - count = 0 while True: if not self.bot.is_ready() or self.bot.is_closed(): await asyncio.sleep(1) @@ -45,11 +44,7 @@ class RedisQueue: request = json.loads(reply.value) resource = request["resource"] self.dispatch(resource, request["key"], request["params"]) - count = count + 1 - if count > 10: - count = 0 - elif count == 10: - await asyncio.sleep(0) + await asyncio.sleep(0) def dispatch(self, event, key, params): method = "on_" + event