mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Fix playing status not showing
This commit is contained in:
parent
21dc5d0925
commit
200947e78f
@ -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"])
|
||||||
|
Loading…
Reference in New Issue
Block a user