Fix parsing bug

This commit is contained in:
Jeff 2024-06-16 19:28:38 -04:00
parent 6cfe65f7b9
commit 7959ac54da

View File

@ -280,7 +280,7 @@ impl Bot {
"roll" => {
for word in words {
let max = word
.parse::<i64>()
.parse::<u64>()
.map_err(|error| format!("Failed to parse integer: {error}"))?;
let random = thread_rng().gen_range(1..max);