init config from env
This commit is contained in:
parent
30fe746bfd
commit
668e6c53e6
@ -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();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user