diff options
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 80581d5..4d7b4ae 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -8,6 +8,7 @@ use std::time::Duration; mod playback; mod sound; +mod roll; pub use self::sound::*; pub use self::playback::*; @@ -53,6 +54,10 @@ pub fn register_commands(f: StandardFramework) -> StandardFramework { .desc("set playback volume") .guild_only(true) .exec(volume)) + .command("roll", |c| c + .desc("simulate rolling dice") + .guild_only(true) + .exec(roll::roll)) .unrecognised_command(|ctx, msg, unrec| { let url = match msg.content.split_whitespace().skip(1).next() { Some(x) if x.starts_with("http") => x, |
