mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-25 01:30:50 +00:00
Implement roles
management (#18)
Fix formatting Implement `roles` management Add a 'roles' mod and DB
This commit is contained in:
parent
99c7888dfb
commit
5dd26d7474
4 changed files with 250 additions and 1 deletions
|
@ -23,6 +23,7 @@ pub fn setup(
|
|||
data: &mut youmubot_prelude::ShareMap,
|
||||
) -> 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"))?;
|
||||
|
||||
// Create handler threads
|
||||
std::thread::spawn(admin::watch_soft_bans(client));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue