Fix range for die rolling
This commit is contained in:
parent
81ed707dc1
commit
f7ce6f5981
@ -298,7 +298,7 @@ impl Bot {
|
|||||||
|
|
||||||
info!("Rolling a die 1-{max}");
|
info!("Rolling a die 1-{max}");
|
||||||
|
|
||||||
let random = thread_rng().gen_range(1..max);
|
let random = thread_rng().gen_range(1..=max);
|
||||||
|
|
||||||
match message.chat_type {
|
match message.chat_type {
|
||||||
ChatType::Tell(_, _) => self.client.send_command(
|
ChatType::Tell(_, _) => self.client.send_command(
|
||||||
|
Loading…
Reference in New Issue
Block a user