aboutsummaryrefslogtreecommitdiff
path: root/src/commands/mod.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2024-05-11 17:43:58 -0400
committerNathan Perry <np@nathanperry.dev>2024-05-11 17:43:58 -0400
commit332eff26a0a358eef52c307b02b7e1ac080dd15f (patch)
treeb0c9dd25ff325a8f11f79383295af1a5a05f323b /src/commands/mod.rs
parent833f2bed24ab49f1c6242762b6d1e0be9192e870 (diff)
db: fixup build, async-await
Diffstat (limited to 'src/commands/mod.rs')
-rw-r--r--src/commands/mod.rs9
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;