From df83422811a11361839260613d5e828d22177c32 Mon Sep 17 00:00:00 2001 From: minneelyyyy Date: Fri, 11 Oct 2024 21:56:10 -0400 Subject: [PATCH] change a reply in wager --- src/commands/gambling/wager.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/gambling/wager.rs b/src/commands/gambling/wager.rs index 1c532a6..e61dc42 100644 --- a/src/commands/gambling/wager.rs +++ b/src/commands/gambling/wager.rs @@ -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;