forked from Cryz/battle_royale_sim
more logs
This commit is contained in:
4
bot.py
4
bot.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user