mirror of
https://github.com/supleed2/nanobot.git
synced 2024-11-10 04:35:48 +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_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,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue