require ADMIN_ID in config
reason: there should be fallback function that notifies admin about when something went wrong
This commit is contained in:
parent
d3c8b7605d
commit
14f05e5213
@ -39,6 +39,8 @@ pub struct Config {
|
||||
pub db_url: String,
|
||||
#[envconfig(from = "ADMIN_PASS")]
|
||||
pub admin_password: String,
|
||||
#[envconfig(from = "ADMIN_PASS")]
|
||||
pub admin_id: u64,
|
||||
}
|
||||
|
||||
#[derive(BotCommands, Clone)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user