From 7959ac54da8fc5cb66cbe6dcf24732708b8afe1a Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 16 Jun 2024 19:28:38 -0400 Subject: [PATCH] Fix parsing bug --- src/bot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.rs b/src/bot.rs index 04d8f11..7e6e1f7 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -280,7 +280,7 @@ impl Bot { "roll" => { for word in words { let max = word - .parse::() + .parse::() .map_err(|error| format!("Failed to parse integer: {error}"))?; let random = thread_rng().gen_range(1..max);