impl webhook route
This commit is contained in:
+1
-1
@@ -1,5 +1,6 @@
|
||||
use dotenvy::dotenv;
|
||||
|
||||
|
||||
pub struct EnvConfig {
|
||||
pub http_port: u16,
|
||||
pub bot_name: String,
|
||||
@@ -9,7 +10,6 @@ pub fn load_config() -> anyhow::Result<EnvConfig> {
|
||||
dotenv().ok();
|
||||
|
||||
let http_port = std::env::var("HTTP_PORT")?.parse()?;
|
||||
|
||||
let bot_name = std::env::var("BOT_NAME")?;
|
||||
|
||||
Ok(EnvConfig {
|
||||
|
||||
Reference in New Issue
Block a user