Add general channel to config

This commit is contained in:
Aadi Desai 2023-09-24 14:49:26 +01:00
parent d1dd31a608
commit 3005c26096
Signed by: supleed2
SSH key fingerprint: SHA256:CkbNRs0yVzXEiUp2zd0PSxsfRUMFF9bLlKXtE1xEbKM

View file

@ -15,6 +15,7 @@ struct Data {
ea_key: String, ea_key: String,
ea_url: String, ea_url: String,
fresher: serenity::RoleId, fresher: serenity::RoleId,
gn_ch_id: serenity::ChannelId,
member: serenity::RoleId, member: serenity::RoleId,
} }
@ -77,6 +78,11 @@ async fn poise(
.expect("FRESHER_ID not found") .expect("FRESHER_ID not found")
.parse() .parse()
.expect("FRESHER_ID not valid u64"); .expect("FRESHER_ID not valid u64");
let gn_ch_id = secret_store
.get("GN_CHANNEL_ID")
.expect("GN_CHANNEL_ID not found")
.parse()
.expect("GN_CHANNEL_ID not valid u64");
let member = secret_store let member = secret_store
.get("MEMBER_ID") .get("MEMBER_ID")
.expect("MEMBER_ID not found") .expect("MEMBER_ID not found")
@ -139,6 +145,7 @@ async fn poise(
ea_key, ea_key,
ea_url, ea_url,
fresher, fresher,
gn_ch_id,
member, member,
}) })
}) })