mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 22:17:03 +01:00
Use discord game status immediately after logging in
This commit is contained in:
parent
ce205daa0e
commit
29c1d8bfda
@ -28,7 +28,10 @@ except AttributeError:
|
||||
|
||||
class Titan(discord.AutoShardedClient):
|
||||
def __init__(self):
|
||||
super().__init__(max_messages=10000)
|
||||
super().__init__(
|
||||
max_messages=10000,
|
||||
activity=discord.Game(name="Embed your Discord server! Visit https://TitanEmbeds.com/")
|
||||
)
|
||||
self.aiosession = aiohttp.ClientSession(loop=self.loop)
|
||||
self.http.user_agent += ' TitanEmbeds-Bot'
|
||||
self.redisqueue = RedisQueue(self, config["redis-uri"])
|
||||
@ -80,9 +83,6 @@ 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)
|
||||
|
||||
self.discordBotsOrg = DiscordBotsOrg(self.user.id, config.get("discord-bots-org-token", None))
|
||||
self.botsDiscordPw = BotsDiscordPw(self.user.id, config.get("bots-discord-pw-token", None))
|
||||
await self.postStats()
|
||||
|
Loading…
Reference in New Issue
Block a user