aoijeraoeijaeoirjpoiaejroipaejrpaoejroepaijropaeijropiaejteopheagoiphaeohgoipaeoprhaoeprihaepf

This commit is contained in:
GZod01 2024-12-17 11:26:02 +01:00
parent dbce9b23ba
commit a35f9919ef

View file

@ -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")