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