change a reply in wager
This commit is contained in:
@@ -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);
|
let wealth = get_user_wealth_mut(&mut users, ctx.author().id);
|
||||||
|
|
||||||
if *wealth < amount {
|
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(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
if rand::random() {
|
if rand::random() {
|
||||||
*wealth += amount;
|
*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?;
|
amount, *wealth)).await?;
|
||||||
} else {
|
} else {
|
||||||
*wealth -= amount;
|
*wealth -= amount;
|
||||||
|
|||||||
Reference in New Issue
Block a user