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

View File

@@ -1,10 +1,11 @@
from utils import logs as _log
import debug as _dbg
def get_winner(Arena):
winner= Arena.get_alive_players()[0]
try:
context.job.schedule_removal()
print(f'simulate_day: Loop removed')
_log.log_info(f'simulate_day: Loop removed')
except: pass
msg= f'{winner.get_name_and_stats()} Vince la cruenta battaglia '
msg+= f'uccidendo {winner.get_kills()} giocatori '
@@ -19,7 +20,7 @@ def get_winner(Arena):
async def simulate_day(context, chat_id):
if 'arena' not in context.application.bot_data:
print('Arena not Found')
_log.log_info('Arena not Found')
await context.bot.send_message(chat_id, 'Che e\' successo? un Guarino ha rubato l\'arena, avvia una nuova partita con /start')
return