diff options
Diffstat (limited to 'src/commands/mod.rs')
| -rw-r--r-- | src/commands/mod.rs | 9 |
1 files changed, 4 insertions, 5 deletions
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; |
