diff options
Diffstat (limited to 'src/commands')
| -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()] +} |
