This commit is contained in:
pavel 2026-02-13 19:52:42 +01:00
commit d1a68c635c
5 changed files with 384 additions and 94 deletions

View file

@ -1,4 +1,5 @@
mod auth;
mod chat;
mod config;
mod db;
mod entity;
@ -24,6 +25,7 @@ pub struct AppState {
pub settings: Arc<Settings>,
pub http: reqwest::Client,
pub voice: Arc<VoiceHub>,
pub chat: Arc<chat::ChatHub>,
}
#[tokio::main]
@ -46,6 +48,7 @@ async fn main() -> anyhow::Result<()> {
settings,
http: reqwest::Client::new(),
voice: Arc::new(VoiceHub::default()),
chat: Arc::new(chat::ChatHub::default()),
};
let port = state.settings.port;