diff options
| author | Nathan Perry <avaglir@gmail.com> | 2019-03-05 14:56:46 -0500 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2019-03-05 14:56:46 -0500 |
| commit | 24a7cb3c8eb0517b69c145170765c891a82ccc76 (patch) | |
| tree | 011687958e1701887fa38ee71fea28e39237e12b /src/commands/mod.rs | |
| parent | d96a9c9899690cf639905af8e1006d539f1d49a6 (diff) | |
add debug_expr command
Diffstat (limited to 'src/commands/mod.rs')
| -rw-r--r-- | src/commands/mod.rs | 5 |
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, |
