1
0

better log name

This commit is contained in:
andrea
2025-07-26 23:59:35 +02:00
parent bee2e94f82
commit bd0601e115
2 changed files with 16 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ async def show_logs(update, context):
try:
game_log= _os.path.expanduser(f'{_botsyms.BOT_PATH}/battle_royale.log')
with open(game_log, 'r') as _log_file:
lines= _log_file.readlines()[-10:]
lines= _log_file.readlines()[-30:]
log_content= '\n'.join(lines)
await update.message.reply_text(f"Contenuto del log:\n{log_content}")
except Exception as e: