Initiating world domination

This commit is contained in:
Skynet 2024-09-17 09:00:07 +01:00 committed by Daragh Downes
parent 28b911c468
commit 5f4e46bb51
No known key found for this signature in database

View file

@ -7,6 +7,8 @@ use serenity::{
application::{command::Command, interaction::Interaction},
gateway::{GatewayIntents, Ready},
guild,
prelude::Activity,
user::OnlineStatus,
},
Client,
};
@ -80,6 +82,7 @@ impl EventHandler for Handler {
async fn ready(&self, ctx: Context, ready: Ready) {
println!("[Main] {} is connected!", ready.user.name);
ctx.set_presence(Some(Activity::playing("with humanity's fate")), OnlineStatus::Online).await;
match Command::set_global_application_commands(&ctx.http, |commands| {
commands