From b9161a052f81cd46d14a4574b1bb57486eaf564120c2ba84023ee87bf6b95596 Mon Sep 17 00:00:00 2001 From: andrea Date: Sun, 27 Jul 2025 00:06:59 +0200 Subject: [PATCH] fix logs command --- bot_libs/special_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot_libs/special_commands.py b/bot_libs/special_commands.py index 1a47440..c886f88 100644 --- a/bot_libs/special_commands.py +++ b/bot_libs/special_commands.py @@ -41,7 +41,7 @@ async def show_logs(update, context): await update.message.reply_text('Sto provando ad aprire i log...') _log.log_info(f'open_logs: {chat_id} trying opening logs...') try: - game_log= _os.path.expanduser(f'{_botsyms.BOT_PATH}/battle_royale.log') + game_log= _os.path.expanduser(f'{_botsyms.BOT_PATH}/{_log.get_log_name()}') with open(game_log, 'r') as _log_file: lines= _log_file.readlines()[-30:] log_content= '\n'.join(lines)