mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2026-02-04 06:42:09 +00:00
fix: init Config
This commit is contained in:
@@ -2,6 +2,7 @@ use dotenv::dotenv;
|
||||
use teloxide::{prelude::*, respond};
|
||||
use tg_relay_rs::{
|
||||
comments::Comments,
|
||||
config::Config,
|
||||
handler::{Handler, create_handlers},
|
||||
telemetry::setup_logger,
|
||||
};
|
||||
@@ -23,6 +24,10 @@ async fn main() -> color_eyre::Result<()> {
|
||||
.init()
|
||||
.expect("failed to initialize comments");
|
||||
|
||||
Config::from_env()
|
||||
.init()
|
||||
.expect("failed to initialize comments");
|
||||
|
||||
let bot = Bot::from_env();
|
||||
info!("bot starting");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user