From 2a08560ab852e257517d8ff033ddaa83fb3e2ab2 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Sun, 2 Apr 2023 00:12:51 +0200 Subject: [PATCH] fix spam in server output --- truthinquiry/routes/routes_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/truthinquiry/routes/routes_api.py b/truthinquiry/routes/routes_api.py index ed21037..b001663 100644 --- a/truthinquiry/routes/routes_api.py +++ b/truthinquiry/routes/routes_api.py @@ -26,7 +26,8 @@ def cleanup(): games_to_delete.append(game_id) for game_id in games_to_delete: del game_logic.games_list[game_id] - discord_bot.update_games_presence() + if os.getenv("DISCORD_BOT_TOKEN") is not "": + discord_bot.update_games_presence() # API specification is documented in api_doc.yml