change a reply in wager

This commit is contained in:
2024-10-11 21:56:10 -04:00
parent 7cb2676ca0
commit df83422811

View File

@@ -9,13 +9,14 @@ pub async fn wager(ctx: Context<'_>, amount: usize) -> Result<(), Error> {
let wealth = get_user_wealth_mut(&mut users, ctx.author().id);
if *wealth < amount {
ctx.reply("You do not have enough tokens to wager this amount.").await?;
ctx.reply(format!("You do not have enough tokens (**{}**) to wager this amount.",
*wealth)).await?;
return Ok(());
}
if rand::random() {
*wealth += amount;
ctx.reply(format!("You just gained {} token(s)! You now have **{}**.",
ctx.reply(format!("You just gained **{}** token(s)! You now have **{}**.",
amount, *wealth)).await?;
} else {
*wealth -= amount;