Extended role list

This commit is contained in:
Natsu Kagami 2021-02-10 17:57:19 +09:00 committed by Natsu Kagami
parent e0c11a09fb
commit 1ecfcc92d2
4 changed files with 107 additions and 21 deletions

View file

@ -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(