mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-25 01:30:50 +00:00
Extended role list
This commit is contained in:
parent
e0c11a09fb
commit
1ecfcc92d2
4 changed files with 107 additions and 21 deletions
|
@ -23,7 +23,11 @@ pub fn setup(
|
|||
data: &mut TypeMap,
|
||||
) -> serenity::framework::standard::CommandResult {
|
||||
db::SoftBans::insert_into(&mut *data, &path.join("soft_bans.yaml"))?;
|
||||
db::Roles::insert_into(&mut *data, &path.join("roles.yaml"))?;
|
||||
db::load_role_list(
|
||||
&mut *data,
|
||||
&path.join("roles_v2.yaml"),
|
||||
&path.join("roles.yaml"),
|
||||
)?;
|
||||
|
||||
// Create handler threads
|
||||
tokio::spawn(admin::watch_soft_bans(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue