summaryrefslogtreecommitdiff
path: root/src/commands/mod.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-02 07:00:24 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commit0025ad5ea8d412aacc3184d18063fd5ff3de0175 (patch)
tree1d2b5ac5c04a092756180722358d929feeae50aa /src/commands/mod.rs
parentac32ec2a0ba37deb0ad82b4f2ee9c1e1b359cc88 (diff)
feat: add per guild configuration
Diffstat (limited to 'src/commands/mod.rs')
-rw-r--r--src/commands/mod.rs27
1 files changed, 11 insertions, 16 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs
index 5edf0b7..8c265d3 100644
--- a/src/commands/mod.rs
+++ b/src/commands/mod.rs
@@ -1,28 +1,23 @@
-pub mod ask;
-pub mod bing;
-pub mod convert;
-pub mod copypasta;
-pub mod random;
-pub mod teawiespam;
-pub mod version;
-
use crate::Data;
use color_eyre::eyre::Report;
use poise::Command;
+mod general;
+mod moderation;
+mod optional;
+
pub fn to_global_commands() -> Vec<Command<Data, Report>> {
vec![
- ask::ask(),
- bing::bing(),
- convert::convert(),
- random::random(),
- copypasta::copypasta(),
- teawiespam::teawiespam(),
- version::version(),
+ general::ask(),
+ general::bing(),
+ general::convert(),
+ general::random(),
+ general::version(),
+ moderation::config(),
]
}
pub fn to_guild_commands() -> Vec<Command<Data, Report>> {
- vec![copypasta::copypasta(), teawiespam::teawiespam()]
+ vec![optional::copypasta(), optional::teawiespam()]
}