fix: hardcode teh inter-committee server
This commit is contained in:
parent
7f7e7ac598
commit
e7425588a6
2 changed files with 7 additions and 13 deletions
12
src/main.rs
12
src/main.rs
|
@ -40,7 +40,8 @@ impl EventHandler for Handler {
|
|||
let config_global = config_lock.read().await;
|
||||
|
||||
// committee server takes priority
|
||||
if new_member.guild_id.eq(&config_global.committee_server) {
|
||||
let committee_server = GuildId::new(1220150752656363520);
|
||||
if new_member.guild_id.get() == committee_server.get() {
|
||||
let mut member = vec![new_member.clone()];
|
||||
update_committees(&db, &ctx, &config_global, &mut member).await;
|
||||
return;
|
||||
|
@ -128,14 +129,7 @@ Sign up on [UL Wolves]({}) and go to https://discord.com/channels/{}/{} and use
|
|||
}
|
||||
}
|
||||
|
||||
let config_lock = {
|
||||
let data_read = ctx.data.read().await;
|
||||
data_read.get::<Config>().expect("Expected Config in TypeMap.").clone()
|
||||
};
|
||||
let config_global = config_lock.read().await;
|
||||
|
||||
match &config_global
|
||||
.committee_server
|
||||
match GuildId::new(1220150752656363520)
|
||||
.set_commands(&ctx.http, vec![commands::count::committee::register()])
|
||||
.await
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue