summaryrefslogtreecommitdiff
path: root/crates/bot-commands/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/bot-commands/src/lib.rs')
-rw-r--r--crates/bot-commands/src/lib.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/bot-commands/src/lib.rs b/crates/bot-commands/src/lib.rs
new file mode 100644
index 0000000..79fce17
--- /dev/null
+++ b/crates/bot-commands/src/lib.rs
@@ -0,0 +1,17 @@
+use serenity::builder::CreateCommand;
+
+pub mod about;
+pub mod ping;
+pub mod track;
+
+macro_rules! cmd {
+ ($module: ident) => {
+ $module::register()
+ };
+}
+
+/// Return a list of all our [`CreateCommand`]s
+#[must_use]
+pub fn to_vec() -> Vec<CreateCommand> {
+ vec![cmd!(about), cmd!(ping), cmd!(track)]
+}