diff options
| author | seth <[email protected]> | 2023-11-15 23:43:28 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-16 05:41:54 +0000 |
| commit | ab794da608dc35f4a63825fdbe5226840b80e822 (patch) | |
| tree | 65bc05685afa27c45eae87d01de1f8b5d91579b8 /src/commands/mod.rs | |
| parent | fda5ce1f689d0de2e4ca47566218da28bd0b135f (diff) | |
chore: separate command declaration from main.rs
Diffstat (limited to 'src/commands/mod.rs')
| -rw-r--r-- | src/commands/mod.rs | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs index d3a1b36..08cfc3d 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -1,6 +1,5 @@ pub mod ask; pub mod bing; -pub mod bottom; pub mod convert; pub mod copypasta; pub mod random_lore; @@ -8,3 +7,24 @@ pub mod random_shiggy; pub mod random_teawie; pub mod teawiespam; pub mod version; + +use crate::{Data, Error}; +use poise::Command; + +pub fn to_global_commands() -> Vec<Command<Data, Error>> { + vec![ + ask::ask(), + bing::bing(), + convert::convert(), + random_lore::random_lore(), + random_shiggy::random_shiggy(), + random_teawie::random_teawie(), + copypasta::copypasta(), + teawiespam::teawiespam(), + version::version(), + ] +} + +pub fn to_guild_commands() -> Vec<Command<Data, Error>> { + vec![copypasta::copypasta(), teawiespam::teawiespam()] +} |
