aboutsummaryrefslogtreecommitdiff
path: root/src/commands/roll.rs
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2019-01-24 20:03:25 -0500
committerNathan Perry <avaglir@gmail.com>2019-01-24 20:03:25 -0500
commit1a8a6eca29afe2178c6cf17abce9ab7e229ca26c (patch)
tree15f15250ab2bc940dc5b64b26729183a7c4e39e0 /src/commands/roll.rs
parent928fd4314db88c623ea991de4e6e669027f57848 (diff)
improve imports further and fix compile warnings
Diffstat (limited to 'src/commands/roll.rs')
-rw-r--r--src/commands/roll.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/commands/roll.rs b/src/commands/roll.rs
index 217b3a4..b3f7a38 100644
--- a/src/commands/roll.rs
+++ b/src/commands/roll.rs
@@ -1,14 +1,15 @@
+use rand::prelude::*;
+use regex::Regex;
use serenity::{
- prelude::*,
framework::standard::Args,
model::channel::Message,
+ prelude::*,
};
-use regex::Regex;
-use rand::prelude::*;
-use crate::Result;
-
-use super::send;
+use crate::{
+ commands::send,
+ Result,
+};
lazy_static! {
static ref ROLL_REGEX: Regex = Regex::new(r"([0-9]+)?(?:d([0-9]+)(?:\s+\+\s+([0-9]+))?)")