mirror of
https://github.com/supleed2/nanobot.git
synced 2024-12-22 22:25:51 +00:00
Add general channel to config
This commit is contained in:
parent
d1dd31a608
commit
3005c26096
|
@ -15,6 +15,7 @@ struct Data {
|
|||
ea_key: String,
|
||||
ea_url: String,
|
||||
fresher: serenity::RoleId,
|
||||
gn_ch_id: serenity::ChannelId,
|
||||
member: serenity::RoleId,
|
||||
}
|
||||
|
||||
|
@ -77,6 +78,11 @@ async fn poise(
|
|||
.expect("FRESHER_ID not found")
|
||||
.parse()
|
||||
.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
|
||||
.get("MEMBER_ID")
|
||||
.expect("MEMBER_ID not found")
|
||||
|
@ -139,6 +145,7 @@ async fn poise(
|
|||
ea_key,
|
||||
ea_url,
|
||||
fresher,
|
||||
gn_ch_id,
|
||||
member,
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue