From ab794da608dc35f4a63825fdbe5226840b80e822 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 15 Nov 2023 23:43:28 -0500 Subject: chore: separate command declaration from main.rs --- src/commands/mod.rs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/commands/mod.rs') 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> { + 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> { + vec![copypasta::copypasta(), teawiespam::teawiespam()] +} -- cgit v1.2.3