aboutsummaryrefslogtreecommitdiff
path: root/src/commands/mod.rs
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2019-03-05 14:56:46 -0500
committerNathan Perry <avaglir@gmail.com>2019-03-05 14:56:46 -0500
commit24a7cb3c8eb0517b69c145170765c891a82ccc76 (patch)
tree011687958e1701887fa38ee71fea28e39237e12b /src/commands/mod.rs
parentd96a9c9899690cf639905af8e1006d539f1d49a6 (diff)
add debug_expr command
Diffstat (limited to 'src/commands/mod.rs')
-rw-r--r--src/commands/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs
index 5dd98d8..4619a5a 100644
--- a/src/commands/mod.rs
+++ b/src/commands/mod.rs
@@ -60,6 +60,11 @@ pub fn register_commands(f: StandardFramework) -> StandardFramework {
.desc("simulate rolling dice")
.guild_only(true)
.exec(roll::roll))
+ .command("debug_expr", |c| c
+ .desc("debug calculator expression")
+ .owners_only(true)
+ .exec(roll::debug_expr)
+ )
.unrecognised_command(|ctx, msg, unrec| {
let url = match msg.content.split_whitespace().skip(1).next() {
Some(x) if x.starts_with("http") => x,