Voice requests

This commit is contained in:
2026-01-06 19:46:59 +01:00
parent 81c59a578d
commit 36fc8da82b
6 changed files with 156 additions and 3 deletions
+3 -1
View File
@@ -25,7 +25,7 @@ use crate::{
cli, logger,
plugin::{Plugin, loader::PluginLoader, types::LoaderMessage},
types::{self, message::WsMessage},
utils::{self, auth, client::Client},
utils::{self, auth, client::Client, voice::Voice},
};
#[derive(serde::Serialize, serde::Deserialize)]
@@ -45,6 +45,7 @@ pub struct Server {
pub db: utils::database::Database,
pub shutting_down: AtomicBool,
pub indicators: Mutex<Vec<crate::requests::indicator::IndicatorContext>>,
pub voice: Mutex<crate::utils::voice::Voice>,
}
impl Default for ServerConfig {
@@ -81,6 +82,7 @@ impl Server {
plugins: Mutex::new(Vec::new()),
shutting_down: AtomicBool::new(false),
indicators: Mutex::new(Vec::new()),
voice: Mutex::new(Voice::new()),
})
}