From 84fd97cc846b25fe7574f2bf69a760e77e354c9a Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 3 Feb 2024 13:57:19 -0700 Subject: [PATCH] Actually register shutdown --- scripty_commands/src/cmds/admin/mod.rs | 1 + scripty_commands/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripty_commands/src/cmds/admin/mod.rs b/scripty_commands/src/cmds/admin/mod.rs index c3783e18..3480a11a 100644 --- a/scripty_commands/src/cmds/admin/mod.rs +++ b/scripty_commands/src/cmds/admin/mod.rs @@ -8,6 +8,7 @@ mod shutdown; pub use cache_info::cache_info; pub use guild_check::*; pub use hash_user_id::hash_user_id; +pub use shutdown::shutdown; #[poise::command(prefix_command, hide_in_help, owners_only)] pub async fn admin(ctx: Context<'_>) -> Result<(), Error> { diff --git a/scripty_commands/src/lib.rs b/scripty_commands/src/lib.rs index 56229397..247cc209 100644 --- a/scripty_commands/src/lib.rs +++ b/scripty_commands/src/lib.rs @@ -4,7 +4,7 @@ extern crate scripty_i18n; #[macro_use] extern crate tracing; -pub mod cmds; +mod cmds; mod i18n; pub fn build_commands() -> Vec> { @@ -30,6 +30,7 @@ pub fn build_commands() -> Vec> { cmds::check_guilds(), cmds::hash_user_id(), cmds::cache_info(), + cmds::shutdown(), ], ..cmds::admin() },