mirror of
https://github.com/mii443/ncb-tts-r2.git
synced 2025-08-22 16:15:29 +00:00
fix instance.rs bug
This commit is contained in:
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user