mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2025-12-20 11:04:41 +00:00
fix: init Config
This commit is contained in:
parent
928aa2fdae
commit
0c60a61dc1
@ -62,7 +62,7 @@ pub fn global_config() -> Config {
|
||||
}
|
||||
|
||||
impl YoutubeConfig {
|
||||
const DEFAULT_POSTPROCESSOR_ARGS: &'static str = "ffmpeg:-vf setsar=1 -c:v libx264 -crf 20 -preset ultrafast -c:a aac -b:a 128k -movflags +faststart";
|
||||
const DEFAULT_POSTPROCESSOR_ARGS: &'static str = "ffmpeg:-vf setsar=1 -c:v libx264 -crf 20 -preset veryfast -c:a aac -b:a 128k -movflags +faststart";
|
||||
|
||||
fn from_env() -> Self {
|
||||
Self {
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user