init config from env

This commit is contained in:
Akulij 2025-03-30 18:15:56 +08:00
parent 30fe746bfd
commit 668e6c53e6

View File

@ -10,6 +10,7 @@ struct Config {
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>>{ async fn main() -> Result<(), Box<dyn std::error::Error>>{
dotenvy::dotenv()?; dotenvy::dotenv()?;
let config = Config::init_from_env()?;
let bot = Bot::from_env(); let bot = Bot::from_env();