fix instance.rs bug

This commit is contained in:
mii443
2025-04-03 02:32:59 +09:00
parent 5ee3c9b328
commit 1975b2e9cd
4 changed files with 8 additions and 2 deletions

View File

@ -15,6 +15,7 @@ base64 = "0.13"
async-trait = "0.1.57"
redis = "*"
regex = "1"
tracing-subscriber = "0.3.19"
[dependencies.uuid]
version = "0.8"
@ -24,6 +25,10 @@ features = ["serde", "v4"]
version = "0.5"
features = ["builtin-queue"]
[dependencies.symphonia]
version = "0.5"
features = ["mp3"]
[dependencies.serenity]
version = "0.12"
features = ["builder", "cache", "client", "gateway", "model", "utils", "unstable_discord_api", "collector", "rustls_backend", "framework", "voice"]

View File

@ -1,4 +1,4 @@
FROM lukemathwalker/cargo-chef:latest-rust-1.72 AS chef
FROM lukemathwalker/cargo-chef:latest-rust-1.82 AS chef
WORKDIR app
FROM chef AS planner

View File

@ -42,6 +42,7 @@ async fn create_client(prefix: &str, token: &str, id: u64) -> Result<Client, ser
#[tokio::main]
async fn main() {
tracing_subscriber::fmt().init();
// Load config
let config = {
let config = std::fs::read_to_string("./config.toml");

View File

@ -34,7 +34,7 @@ impl TTSInstance {
let call = manager.get(self.guild).unwrap();
let mut call = call.lock().await;
let input = File::new(path);
call.enqueue(input.into());
call.enqueue(input.into()).await;
}
}