diff --git a/bot.py b/bot.py index 825a3e1..8a6a6a1 100644 --- a/bot.py +++ b/bot.py @@ -42,11 +42,11 @@ async def echo(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: await update.message.reply_text(_botsyms.WIP_MSG) async def add_player(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: - player= 'XXX' #XXX implement me, get from user request + name= " ".join(context.args) print(f'sto aggiungendo il giocatore {player} all\'arena') _brsim.BrSimArena Arena= context.application.bot_data['arena'] - Arena.add_player(player) + Arena.add_player(name) print(f'Giocatori: {Arena.get_players()}') print(f'Ecco il mondo di gioco, questi sono i giocatori: {Arena.get_players()}')