mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Fix playing status not showing
This commit is contained in:
		@@ -17,8 +17,7 @@ logging.getLogger('sqlalchemy')
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class Titan(discord.AutoShardedClient):
 | 
					class Titan(discord.AutoShardedClient):
 | 
				
			||||||
    def __init__(self):
 | 
					    def __init__(self):
 | 
				
			||||||
        game = discord.Game(name="Embed your Discord server! Visit https://TitanEmbeds.com/")
 | 
					        super().__init__(max_messages=20000)
 | 
				
			||||||
        super().__init__(max_messages=20000, game=game)
 | 
					 | 
				
			||||||
        self.aiosession = aiohttp.ClientSession(loop=self.loop)
 | 
					        self.aiosession = aiohttp.ClientSession(loop=self.loop)
 | 
				
			||||||
        self.http.user_agent += ' TitanEmbeds-Bot'
 | 
					        self.http.user_agent += ' TitanEmbeds-Bot'
 | 
				
			||||||
        self.database = DatabaseInterface(self)
 | 
					        self.database = DatabaseInterface(self)
 | 
				
			||||||
@@ -64,6 +63,9 @@ class Titan(discord.AutoShardedClient):
 | 
				
			|||||||
        print('------')
 | 
					        print('------')
 | 
				
			||||||
        print("Shard count: " + str(self.shard_count))
 | 
					        print("Shard count: " + str(self.shard_count))
 | 
				
			||||||
        print("------")
 | 
					        print("------")
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        game = discord.Game(name="Embed your Discord server! Visit https://TitanEmbeds.com/")
 | 
				
			||||||
 | 
					        await self.change_presence(status=discord.Status.online, activity=game)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            await self.database.connect(config["database-uri"])
 | 
					            await self.database.connect(config["database-uri"])
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user