mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-25 01:30:50 +00:00
Update youmubot-core
This commit is contained in:
parent
3f115eaab0
commit
08d639944e
10 changed files with 167 additions and 354 deletions
|
@ -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(),
|
||||
));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue