Skip to content

Commit

Permalink
Actually register shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Feb 3, 2024
1 parent 65e9bc1 commit 84fd97c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripty_commands/src/cmds/admin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down
3 changes: 2 additions & 1 deletion scripty_commands/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<poise::Command<Data, Error>> {
Expand All @@ -30,6 +30,7 @@ pub fn build_commands() -> Vec<poise::Command<Data, Error>> {
cmds::check_guilds(),
cmds::hash_user_id(),
cmds::cache_info(),
cmds::shutdown(),
],
..cmds::admin()
},
Expand Down

0 comments on commit 84fd97c

Please sign in to comment.