fix logs command
This commit is contained in:
@@ -41,7 +41,7 @@ async def show_logs(update, context):
|
|||||||
await update.message.reply_text('Sto provando ad aprire i log...')
|
await update.message.reply_text('Sto provando ad aprire i log...')
|
||||||
_log.log_info(f'open_logs: {chat_id} trying opening logs...')
|
_log.log_info(f'open_logs: {chat_id} trying opening logs...')
|
||||||
try:
|
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:
|
with open(game_log, 'r') as _log_file:
|
||||||
lines= _log_file.readlines()[-30:]
|
lines= _log_file.readlines()[-30:]
|
||||||
log_content= '\n'.join(lines)
|
log_content= '\n'.join(lines)
|
||||||
|
|||||||
Reference in New Issue
Block a user