diff options
Diffstat (limited to 'src/commands/mod.rs')
| -rw-r--r-- | src/commands/mod.rs | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs index ba87adb..1ad4a59 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -20,17 +20,9 @@ pub(crate) mod today; pub use self::meme::*; pub fn commands() -> Vec<poise::Command<crate::PoiseData, anyhow::Error>> { - let mut commands = vec![ - playback::play(), - playback::pause(), - playback::resume(), - playback::die(), - playback::list(), - sound_levels::mute(), - sound_levels::unmute(), - roll::roll(), - help(), - ]; + let mut commands = vec![sound_levels::mute(), sound_levels::unmute(), roll::roll(), help()]; + + commands.extend(playback::commands()); #[cfg(feature = "games")] commands.extend(game::commands()); @@ -41,7 +33,8 @@ pub fn commands() -> Vec<poise::Command<crate::PoiseData, anyhow::Error>> { commands } -#[poise::command(slash_command, prefix_command, aliases("halp"))] +/// Print this help text. +#[poise::command(prefix_command, aliases("halp"))] pub async fn help(ctx: PoiseContext<'_>, command: Option<String>) -> anyhow::Result<()> { poise::builtins::pretty_help( ctx, |
