diff --git a/money_commands.py b/money_commands.py index 4172400..5bfff86 100644 --- a/money_commands.py +++ b/money_commands.py @@ -50,7 +50,7 @@ class MoneyCommands(app_commands.Group): await self.bot.db.execute("UPDATE personnages SET money=money-? WHERE nom_court=?", (amount,from_short_name)) await self.bot.db.execute("UPDATE personnages SET money=money+? WHERE nom_court=?", (amount,to_short_name)) await self.bot.db.commit() - await interaction.response.send_message(f"{from_short_name} vient de donner {amount} pièces à {to_short_name}",ephemeral=not secret) + await interaction.response.send_message(f"{from_short_name} vient de donner {amount} pièces à {to_short_name}",ephemeral=secret) @app_commands.command(name="voir",description="Voir votre solde ou le solde d'un autre personnage") @app_commands.describe(short_name="Le personnage dont vous voulez voir le solde",secret="Si l'opération doit être secrète") async def see_money(self,interaction:discord.Interaction,short_name:str,secret:bool=True): @@ -59,7 +59,7 @@ class MoneyCommands(app_commands.Group): if money is None: await interaction.response.send_message("Ce personnage n'existe pas",ephemeral=True) return - await interaction.response.send_message(f"{short_name} a {money['money']} pièces",ephemeral=not secret) + await interaction.response.send_message(f"{short_name} a {money['money']} pièces",ephemeral=secret) @app_commands.command(name="admin_ajouter",description="Ajoute de l'argent à un personnage") @app_commands.describe(amount="Le montant à ajouter",short_name="Le personnage à qui ajouter l'argent")