From fdf65962b9610ab0a7b8e91dc1a2d4973f44c169 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sat, 7 Apr 2018 06:09:52 -0400 Subject: database-based memeing working --- src/commands/mod.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/commands/mod.rs') diff --git a/src/commands/mod.rs b/src/commands/mod.rs index d13082f..9ce518b 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -18,41 +18,41 @@ pub fn register_commands(f: StandardFramework) -> StandardFramework { .command("skip", |c| c .desc("skip the rest of the current request") .guild_only(true) - .cmd(skip)) + .exec(skip)) .command("pause", |c| c .desc("pause playback (currently broken)") .guild_only(true) - .cmd(pause)) + .exec(pause)) .command("resume", |c| c .desc("resume playing (currently broken)") .guild_only(true) - .cmd(resume)) + .exec(resume)) .command("list", |c| c .known_as("queue") .desc("list playing and queued requests") .guild_only(true) - .cmd(list)) + .exec(list)) .command("die", |c| c .batch_known_as(vec!["sudoku", "stop"]) .desc("stop playing and empty the queue") .guild_only(true) - .cmd(die)) + .exec(die)) .command("mute", |c| c .desc("mute thulani (playback continues)") .guild_only(true) - .cmd(mute)) + .exec(mute)) .command("unmute", |c| c .desc("unmute thulani") .guild_only(true) - .cmd(unmute)) + .exec(unmute)) .command("play", |c| c .desc("queue a request") .guild_only(true) - .cmd(play)) + .exec(play)) .command("volume", |c| c .desc("set playback volume") .guild_only(true) - .cmd(volume)) + .exec(volume)) .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