From 21ce509ef21eb8f21c68173005f4f8fe537f7443 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 1 Jun 2018 06:44:41 -0400 Subject: add a roll command, relax semver requirements on dependencies --- src/commands/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/commands/mod.rs') 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, -- cgit v1.3.1