From cc0b18db7a478e09801a7c869a6af83dc17c8a17 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sun, 15 Dec 2024 15:55:52 +0100 Subject: [PATCH] Correction d'une erreur de nom de variable dans la fonction say_message --- main-bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main-bot.py b/main-bot.py index 21f280f..e1415f0 100644 --- a/main-bot.py +++ b/main-bot.py @@ -45,7 +45,7 @@ async def say(interaction:discord.Interaction,id:str,message:str): async def say_message(userid:int, guildid:int, shortname:str, message:str,channel:discord.TextChannel): - res = await bot.db.execute("SELECT * FROM personnages WHERE uuid=? AND (guild_id=? OR guild_id IS NULL) AND nom_court=?",(userid,guildid,short_name)) + res = await bot.db.execute("SELECT * FROM personnages WHERE uuid=? AND (guild_id=? OR guild_id IS NULL) AND nom_court=?",(userid,guildid,shortname)) row = await res.fetchone() await res.close() if row is None: