From 6d7ccdbec7176b668a323e18a9ea642cd76e95dc Mon Sep 17 00:00:00 2001 From: "Jeremy \"EndenDragon\" Zhang" Date: Mon, 17 Feb 2020 14:11:24 -0800 Subject: [PATCH] Revert "Connect to redis after 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 3e6fdf3..24db469 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -65,6 +65,7 @@ class Titan(discord.AutoShardedClient): self.loop.close() async def start(self): + await self.redisqueue.connect() await super().start(config["bot-token"]) async def on_ready(self): @@ -75,7 +76,6 @@ class Titan(discord.AutoShardedClient): print('------') print("Shard count: " + str(self.shard_count)) print("------") - await self.redisqueue.connect() self.loop.create_task(self.redisqueue.subscribe()) self.discordBotsOrg = DiscordBotsOrg(self.user.id, config.get("discord-bots-org-token", None))