From 33caf3313670b223e1a00ed8919c3a3c5aff3623 Mon Sep 17 00:00:00 2001 From: nemesis Date: Mon, 10 Nov 2025 12:11:01 +0100 Subject: [PATCH] room_id --- asmodee.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/asmodee.py b/asmodee.py index 5a50388..a73d61e 100644 --- a/asmodee.py +++ b/asmodee.py @@ -710,13 +710,12 @@ async def getNick(room, message): # Obtenir le DisplayName à partir du mxid. #except: # nick = room.user_name(sender) try: - members = await bot.client.get_room_members(room_id) + members = await bot.client.get_room_members(room.room_id) for member in members: if member['state_key'] == sender: nick = member['content'].get('displayname') break except: - print(members) nick = sender return(nick) @@ -1257,7 +1256,7 @@ async def bienvenue(room,message): # Affichage d'un message d'accueil aux nouvea if (modules[room.room_id, 'welcome']): sender = getUser(message) nick = None - members = await bot.client.get_room_members(room_id) + members = await bot.client.get_room_members(room.room_id) for member in members: if member['state_key'] == message.state_key: nick = member['content'].get('displayname') @@ -1345,7 +1344,7 @@ async def addquote(room,message): # enregistrer les citations mode reponses matr auteur = match.group(1) #nick = room.user_name(auteur) try: - members = await bot.client.get_room_members(room_id) + members = await bot.client.get_room_members(room.room_id) for member in members: if member['state_key'] == auteur: nick = member['content'].get('displayname')