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):
 | 
			
		||||
    def __init__(self):
 | 
			
		||||
        game = discord.Game(name="Embed your Discord server! Visit https://TitanEmbeds.com/")
 | 
			
		||||
        super().__init__(max_messages=20000, game=game)
 | 
			
		||||
        super().__init__(max_messages=20000)
 | 
			
		||||
        self.aiosession = aiohttp.ClientSession(loop=self.loop)
 | 
			
		||||
        self.http.user_agent += ' TitanEmbeds-Bot'
 | 
			
		||||
        self.database = DatabaseInterface(self)
 | 
			
		||||
@@ -65,6 +64,9 @@ class Titan(discord.AutoShardedClient):
 | 
			
		||||
        print("Shard count: " + str(self.shard_count))
 | 
			
		||||
        print("------")
 | 
			
		||||
        
 | 
			
		||||
        game = discord.Game(name="Embed your Discord server! Visit https://TitanEmbeds.com/")
 | 
			
		||||
        await self.change_presence(status=discord.Status.online, activity=game)
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
            await self.database.connect(config["database-uri"])
 | 
			
		||||
        except Exception:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user