From 332eff26a0a358eef52c307b02b7e1ac080dd15f Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Sat, 11 May 2024 17:43:58 -0400 Subject: db: fixup build, async-await --- src/commands/mod.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/commands/mod.rs') diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 8eac09c..69c9185 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -5,7 +5,7 @@ use serenity::framework::{ StandardFramework, }; -#[cfg(feature = "diesel")] +#[cfg(feature = "db")] pub use self::meme::*; pub use self::{ playback::*, @@ -13,6 +13,8 @@ pub use self::{ today::TODAY_COMMAND, }; +#[cfg(feature = "db")] +pub(crate) mod meme; pub(crate) mod playback; pub(crate) mod roll; pub(crate) mod sound_levels; @@ -28,7 +30,7 @@ struct General; pub fn register_commands(f: StandardFramework) -> StandardFramework { let result = f.group(&PLAYBACK_GROUP).group(&GENERAL_GROUP); - #[cfg(feature = "diesel")] + #[cfg(feature = "db")] let result = result.group(&MEMES_GROUP); #[cfg(feature = "games")] @@ -55,6 +57,3 @@ pub fn register_commands(f: StandardFramework) -> StandardFramework { }) }) } - -#[cfg(feature = "diesel")] -mod meme; -- cgit v1.3.1