From 14f05e521313298ce23a3f10244b08810068b05e Mon Sep 17 00:00:00 2001 From: Akulij Date: Fri, 2 May 2025 15:45:43 +0300 Subject: [PATCH] require ADMIN_ID in config reason: there should be fallback function that notifies admin about when something went wrong --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index fe143d9..85275c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)]