Skip to content

Commit

Permalink
Print command list before starting client
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinegb committed Sep 20, 2024
1 parent e2dc4b3 commit 2d0e3c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,6 @@ async fn main(
Box::pin(async move {
start_activity_loop(ctx.clone());
info!("Activity loop started");
// Omit `category` argument on a command to hide from list
print_commands(&framework.options().commands);
poise::builtins::register_globally(ctx, &framework.options().commands).await?;
info!("Commands registered");
octocrab::initialise(Octocrab::builder().personal_token(github_pat).build()?);
Expand All @@ -251,6 +249,10 @@ async fn main(
})
})
.build();

// Omit `category` argument on a command to hide from list
print_commands(&framework.options().commands);

#[allow(unused_mut)]
let mut client_builder =
ClientBuilder::new(discord_token, GatewayIntents::GUILDS).framework(framework);
Expand Down

0 comments on commit 2d0e3c2

Please sign in to comment.