diff --git a/main-bot.py b/main-bot.py index dcefd60..f4b0573 100644 --- a/main-bot.py +++ b/main-bot.py @@ -53,9 +53,9 @@ async def say_message(userid:int, guildid:int, shortname:str, message:str,channe await res.close() if row is None: return False - short_name = row[0] - full_name = row[1] - perso_image = row[2] + short_name = row["nom_court"] + full_name = row["nom_complet"] + perso_image = row["image"] webhook = None if discord.utils.get(await channel.webhooks(),name=short_name) is None: webhook = await channel.create_webhook(name=short_name,avatar=perso_image) diff --git a/perso_commands.py b/perso_commands.py index 12ef2ed..6902870 100644 --- a/perso_commands.py +++ b/perso_commands.py @@ -75,6 +75,6 @@ class PersoCommands(app_commands.Group): message="" for row in rows: print(row) - message+=f"Nom court: {row[0]}\nNom complet: {row[1]}\nHistoire: {row[3]}\nPouvoirs: {row[4]}\nAge: {row[6]}\nSexe: {row[7]}\n\n" + message+=f"Nom court: {row["nom_court"]}\nNom complet: {row["nom_complet"]}\nHistoire: {row["histoire"]}\nPouvoirs: {row["pouvoirs"]}\nAge: {row["age"]}\nSexe: {row["sexe"]}\n\n" await interaction.response.send_message("Liste des personnages\n"+message,ephemeral=True) \ No newline at end of file