Update youmubot-core

This commit is contained in:
Natsu Kagami 2024-02-18 00:29:58 +01:00 committed by Natsu Kagami
parent 3f115eaab0
commit 08d639944e
10 changed files with 167 additions and 354 deletions

View file

@ -5,7 +5,7 @@ use serenity::{
model::{channel::Message, id::UserId},
};
use std::collections::HashSet;
use youmubot_prelude::*;
use youmubot_prelude::{announcer::CacheAndHttp, *};
pub mod admin;
pub mod community;
@ -31,7 +31,7 @@ pub fn setup(
// Create handler threads
tokio::spawn(admin::watch_soft_bans(
client.cache_and_http.clone(),
CacheAndHttp::from_client(client),
client.data.clone(),
));