From 5c446935bc0a93bb28ad734a05fc0c1ff74edf96 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sat, 19 Oct 2019 13:38:45 -0700 Subject: [PATCH] Subscribe to redisqueue after the bot is ready --- discordbot/titanembeds/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index 46bb098..24db469 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -66,7 +66,6 @@ class Titan(discord.AutoShardedClient): async def start(self): await self.redisqueue.connect() - self.loop.create_task(self.redisqueue.subscribe()) await super().start(config["bot-token"]) async def on_ready(self): @@ -77,6 +76,7 @@ class Titan(discord.AutoShardedClient): print('------') print("Shard count: " + str(self.shard_count)) print("------") + self.loop.create_task(self.redisqueue.subscribe()) self.discordBotsOrg = DiscordBotsOrg(self.user.id, config.get("discord-bots-org-token", None)) self.botsDiscordPw = BotsDiscordPw(self.user.id, config.get("bots-discord-pw-token", None))