From 51d49156bac384098ef7251268b30fc1daef51bb Mon Sep 17 00:00:00 2001 From: nemesis Date: Mon, 10 Nov 2025 12:05:25 +0100 Subject: [PATCH] await getNick --- asmodee.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/asmodee.py b/asmodee.py index 8c2c6d7..8efd729 100644 --- a/asmodee.py +++ b/asmodee.py @@ -417,7 +417,7 @@ async def entryPoint(room, message): # Analyse des commandes ":", point d'entré global parser text = getMessage(message) user = getUser(message) - nick = getNick(room,message) + nick = await getNick(room,message) parser = Parser(text,nick,room) if (parser.eat(":roll",1)): @@ -831,7 +831,7 @@ async def liste(room, message): # Afficher un élement aléatoire d'une liste fo modules[room.room_id, 'liste'] = False if (modules[room.room_id, 'liste']): res = [] - nick = getNick(room,message) + nick = await getNick(room,message) args = getMessage(message).split() args.pop(0) @@ -876,7 +876,7 @@ async def horloge(room, message): # Gestion des horloges PBTA modules[room.room_id, 'horloge'] = False if (modules[room.room_id, 'horloge']): global clock - nick = getNick(room,message) + nick = await getNick(room,message) args = getMessage(message).split() args.pop(0) @@ -923,11 +923,11 @@ async def verifPMRoom(room, message): # Pour obtenir ou créer un salon pour les nick = "" sender = "" sender = getUser(message) - nick = getNick(room, message) + nick = await getNick(room, message) client_id = bot.creds.username.split(':')[0].split('@')[1] client_host = bot.creds.username.split(':')[1] room_nick = client_id + "_" + nick - bot_nick = getNick(room, message) + bot_nick = await getNick(room, message) salon = None room_id = prive.get(sender) members = [] @@ -973,7 +973,7 @@ async def biere(room,message): # Gestion des boissons breuvages = {} give = False elu = "" - envoyeur = getNick(room, message) + envoyeur = await getNick(room, message) try: breuvages = bieres[room.room_id] @@ -1578,7 +1578,7 @@ def statistiques(room,message): # Enregistrement des statistiques modules[room.room_id, 'stats'] = False if (modules[room.room_id, 'stats']): global stats - nick = getNick(room, message) + nick = await getNick(room, message) user = getUser(message) mess = getMessage(message) usrstats = None