From 200947e78f57c2b727c478fd4fe6f4e46caff6e1 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sat, 24 Mar 2018 14:54:50 +0000 Subject: [PATCH] Fix playing status not showing --- discordbot/titanembeds/bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index f20a71e..1104516 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -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) @@ -64,6 +63,9 @@ class Titan(discord.AutoShardedClient): print('------') 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"])