Skip to content

Commit

Permalink
feat(no-ref): remove command registration (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnysCode authored Oct 26, 2023
1 parent e889d8e commit 1220c3b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions xp-bot/src/events/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ impl EventHandler for Handler {


// -> production slash registration
let mut c = 1;
for commands in COMMANDS {
Command::create_global_application_command(&ctx.http, |command| {
log::info!("Registering command {} ({}/{})", commands.name(), c, COMMANDS.len());
c += 1;
commands.register(command)
}).await.unwrap();
}
// let mut c = 1;
// for commands in COMMANDS {
// Command::create_global_application_command(&ctx.http, |command| {
// log::info!("Registering command {} ({}/{})", commands.name(), c, COMMANDS.len());
// c += 1;
// commands.register(command)
// }).await.unwrap();
// }

// set activity
ctx.set_activity(Activity::listening("xp-bot.net")).await;
Expand Down

0 comments on commit 1220c3b

Please sign in to comment.