await getNick

This commit is contained in:
nemesis 2025-11-10 12:05:25 +01:00
parent c1ee124395
commit 51d49156ba

View file

@ -417,7 +417,7 @@ async def entryPoint(room, message): # Analyse des commandes ":", point d'entré
global parser global parser
text = getMessage(message) text = getMessage(message)
user = getUser(message) user = getUser(message)
nick = getNick(room,message) nick = await getNick(room,message)
parser = Parser(text,nick,room) parser = Parser(text,nick,room)
if (parser.eat(":roll",1)): 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 modules[room.room_id, 'liste'] = False
if (modules[room.room_id, 'liste']): if (modules[room.room_id, 'liste']):
res = [] res = []
nick = getNick(room,message) nick = await getNick(room,message)
args = getMessage(message).split() args = getMessage(message).split()
args.pop(0) args.pop(0)
@ -876,7 +876,7 @@ async def horloge(room, message): # Gestion des horloges PBTA
modules[room.room_id, 'horloge'] = False modules[room.room_id, 'horloge'] = False
if (modules[room.room_id, 'horloge']): if (modules[room.room_id, 'horloge']):
global clock global clock
nick = getNick(room,message) nick = await getNick(room,message)
args = getMessage(message).split() args = getMessage(message).split()
args.pop(0) args.pop(0)
@ -923,11 +923,11 @@ async def verifPMRoom(room, message): # Pour obtenir ou créer un salon pour les
nick = "" nick = ""
sender = "" sender = ""
sender = getUser(message) sender = getUser(message)
nick = getNick(room, message) nick = await getNick(room, message)
client_id = bot.creds.username.split(':')[0].split('@')[1] client_id = bot.creds.username.split(':')[0].split('@')[1]
client_host = bot.creds.username.split(':')[1] client_host = bot.creds.username.split(':')[1]
room_nick = client_id + "_" + nick room_nick = client_id + "_" + nick
bot_nick = getNick(room, message) bot_nick = await getNick(room, message)
salon = None salon = None
room_id = prive.get(sender) room_id = prive.get(sender)
members = [] members = []
@ -973,7 +973,7 @@ async def biere(room,message): # Gestion des boissons
breuvages = {} breuvages = {}
give = False give = False
elu = "" elu = ""
envoyeur = getNick(room, message) envoyeur = await getNick(room, message)
try: try:
breuvages = bieres[room.room_id] breuvages = bieres[room.room_id]
@ -1578,7 +1578,7 @@ def statistiques(room,message): # Enregistrement des statistiques
modules[room.room_id, 'stats'] = False modules[room.room_id, 'stats'] = False
if (modules[room.room_id, 'stats']): if (modules[room.room_id, 'stats']):
global stats global stats
nick = getNick(room, message) nick = await getNick(room, message)
user = getUser(message) user = getUser(message)
mess = getMessage(message) mess = getMessage(message)
usrstats = None usrstats = None