aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/ai.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/commands/ai.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/ai.rs b/src/commands/ai.rs
index 5ab077e..a7a9a7e 100644
--- a/src/commands/ai.rs
+++ b/src/commands/ai.rs
@@ -18,7 +18,7 @@ pub async fn senator(
18 let response = client.chat(lang::SENATOR_SYSTEM_PROMPT, &text).await?; 18 let response = client.chat(lang::SENATOR_SYSTEM_PROMPT, &text).await?;
19 19
20 if tts_vc.unwrap_or(false) { 20 if tts_vc.unwrap_or(false) {
21 let guild_id = ctx.guild_id().ok_or_else(|| lang::err_not_in_guild())?; 21 let guild_id = ctx.guild_id().ok_or_else(lang::err_not_in_guild)?;
22 let channel_id = ctx 22 let channel_id = ctx
23 .serenity_context() 23 .serenity_context()
24 .cache 24 .cache
@@ -28,7 +28,7 @@ pub async fn senator(
28 .get(&ctx.author().id) 28 .get(&ctx.author().id)
29 .and_then(|vs| vs.channel_id) 29 .and_then(|vs| vs.channel_id)
30 }) 30 })
31 .ok_or_else(|| lang::err_not_in_voice())?; 31 .ok_or_else(lang::err_not_in_voice)?;
32 32
33 let tts_url = format!( 33 let tts_url = format!(
34 "https://translate.google.com/translate_tts?ie=UTF-8&q={}&tl=pl&client=tw-ob", 34 "https://translate.google.com/translate_tts?ie=UTF-8&q={}&tl=pl&client=tw-ob",