From 712cc3aba7b68ef2b4f7f932b6c3ace18d8ded91 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 17 Feb 2020 14:47:32 -0800 Subject: [PATCH] On ready to on shard ready --- discordbot/titanembeds/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index 9a682c7..9b6b68a 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -56,13 +56,14 @@ class Titan(discord.AutoShardedClient): await self.redisqueue.connect() await super().start(config["bot-token"]) - async def on_ready(self): + async def on_shard_ready(self, shard_id): print('Titan [DiscordBot]') print('Logged in as the following user:') print(self.user.name) print(self.user.id) print('------') print("Shard count: " + str(self.shard_count)) + print("Shard id: "+ str(shard_id)) print("------") self.loop.create_task(self.redisqueue.subscribe())