mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Post stats before indexing all servers
This commit is contained in:
		@@ -72,6 +72,9 @@ class Titan(discord.Client):
 | 
				
			|||||||
            traceback.print_exc()
 | 
					            traceback.print_exc()
 | 
				
			||||||
            await self.logout()
 | 
					            await self.logout()
 | 
				
			||||||
            return
 | 
					            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:
 | 
					        if "no-init" not in sys.argv:
 | 
				
			||||||
            for server in self.servers:
 | 
					            for server in self.servers:
 | 
				
			||||||
@@ -94,9 +97,6 @@ class Titan(discord.Client):
 | 
				
			|||||||
            await self.database.remove_unused_guilds(self.servers)
 | 
					            await self.database.remove_unused_guilds(self.servers)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            print("Skipping indexing server due to no-init flag")
 | 
					            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):
 | 
					    async def on_message(self, message):
 | 
				
			||||||
        await self.database.push_message(message)
 | 
					        await self.database.push_message(message)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user