From 4ae37fa854a1b95e1321a2e3dd88776d49bc9167 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 5 Jan 2018 10:00:24 +0000 Subject: [PATCH] Post stats before indexing all servers --- discordbot/titanembeds/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index e54fc9f..0dc2d7e 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -72,6 +72,9 @@ class Titan(discord.Client): traceback.print_exc() await self.logout() return + + self.discordBotsOrg = DiscordBotsOrg(self.user.id, config.get("discord-bots-org-token", None)) + await self.discordBotsOrg.post(len(self.servers)) if "no-init" not in sys.argv: for server in self.servers: @@ -94,9 +97,6 @@ class Titan(discord.Client): await self.database.remove_unused_guilds(self.servers) else: print("Skipping indexing server due to no-init flag") - - self.discordBotsOrg = DiscordBotsOrg(self.user.id, config.get("discord-bots-org-token", None)) - await self.discordBotsOrg.post(len(self.servers)) async def on_message(self, message): await self.database.push_message(message)