1
0

more logs

This commit is contained in:
andrea
2025-07-26 19:30:13 +02:00
parent 72ec279036
commit ffbaa1c3b5
4 changed files with 17 additions and 14 deletions

4
bot.py
View File

@@ -38,7 +38,7 @@ async def update_bot(update, context):
await update.message.reply_text('Sto aggiornando il Bot...')
chat_id = update.effective_chat.id
if update.message.chat.id not in _botsyms.SUPER_USERS: return _log.log_warning(f'update_bot: user {chat_id} not allowed')
_log.log_debug(f'update_bot: {chat_id} bot is updating...')
_log.log_info(f'update_bot: {chat_id} bot is updating...')
err= _os.system(f'cd {_botsyms.BOT_PATH}; /usr/bin/git pull')
if err:
_log.log_error(f'update_bot: {chat_id} error {err} while trying to update the app')
@@ -47,7 +47,7 @@ async def update_bot(update, context):
if err:
_log.log_error(f'update_bot: {chat_id} error {err} while trying to upstart the app')
return await update.message.reply_text('Errore durante il riavvio del Bot')
_log.log_debug(f'update_bot: {chat_id} bot successfully updated')
_log.log_info(f'update_bot: {chat_id} bot successfully updated')
await update.message.reply_text('Bot aggiornato e riavviato!')
async def bot_commands(update, context):