mirror of
https://github.com/arthur-pbty/shadowbot.git
synced 2026-06-03 15:07:37 +02:00
16 lines
528 B
Rust
16 lines
528 B
Rust
use serenity::model::prelude::*;
|
|
use serenity::prelude::*;
|
|
|
|
use crate::commands::{admin_service, botconfig_service, help, tempvoc};
|
|
|
|
pub async fn handle_ready(ctx: &Context, ready: &Ready) {
|
|
botconfig_service::restore_presence_from_db(ctx).await;
|
|
help::register_slash_help(ctx).await;
|
|
tempvoc::cleanup_stale_rooms_on_ready(ctx).await;
|
|
|
|
for guild_id in ctx.cache.guilds() {
|
|
admin_service::enforce_blacklist_on_guild(ctx, guild_id).await;
|
|
}
|
|
println!("Connecté en tant que {}", ready.user.name);
|
|
}
|