generated from Nemesis/Exemple
await getNick
This commit is contained in:
parent
c1ee124395
commit
51d49156ba
1 changed files with 7 additions and 7 deletions
14
asmodee.py
14
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue