From 98afa0452f7075a10fb3629cf7838c6775bdb807 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Thu, 30 Mar 2023 18:42:10 +0200 Subject: [PATCH] fix discord bot updates --- truthinquiry/ext/discord_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truthinquiry/ext/discord_bot.py b/truthinquiry/ext/discord_bot.py index 18c58ed..b99f9ca 100644 --- a/truthinquiry/ext/discord_bot.py +++ b/truthinquiry/ext/discord_bot.py @@ -66,7 +66,7 @@ class DiscordBot: """ Update the bot's status using the app's current context """ - games_n = len(app.game_logic.games_list) + games_n = len(truthinquiry.logic.game_logic.games_list) activity_name = f"Handling {games_n} game{'' if games_n==1 else 's'} !" activity = discord.Activity(name=activity_name, type=discord.ActivityType.watching) await self.bot.change_presence(activity=activity)