diff --git a/scripty_audio_handler/src/audio_handler.rs b/scripty_audio_handler/src/audio_handler.rs index 568fa5c..e994f91 100644 --- a/scripty_audio_handler/src/audio_handler.rs +++ b/scripty_audio_handler/src/audio_handler.rs @@ -194,6 +194,7 @@ impl EventHandler for AudioHandler { self.verbose.clone(), self.context.clone(), Arc::clone(&self.webhook), + self.channel_id, self.thread_id, self.transcript_results.clone(), Arc::clone(&self.automod_server_cfg), diff --git a/scripty_audio_handler/src/events/voice_tick.rs b/scripty_audio_handler/src/events/voice_tick.rs index 55e04ed..3a32c6c 100644 --- a/scripty_audio_handler/src/events/voice_tick.rs +++ b/scripty_audio_handler/src/events/voice_tick.rs @@ -36,6 +36,7 @@ pub async fn voice_tick( verbose: Arc, ctx: Context, webhook: Arc, + channel_id: ChannelId, thread_id: Option, transcript_results: Option>>>, automod_server_cfg: Arc, @@ -64,6 +65,7 @@ pub async fn voice_tick( language: Arc::clone(&language), verbose: Arc::clone(&verbose), guild_id, + channel_id, thread_id, automod_server_cfg: Arc::clone(&automod_server_cfg), transcript_results: transcript_results.clone(), @@ -98,6 +100,7 @@ struct SilentSpeakersContext { language: Arc>, verbose: Arc, guild_id: GuildId, + channel_id: ChannelId, thread_id: Option, automod_server_cfg: Arc, transcript_results: TranscriptResults, @@ -116,6 +119,7 @@ async fn handle_silent_speakers<'a>( language, verbose, guild_id, + channel_id, thread_id, automod_server_cfg, transcript_results, @@ -152,6 +156,7 @@ async fn handle_silent_speakers<'a>( // finalize the stream let lang = language.read().clone(); + let _typing = thread_id.unwrap_or(channel_id).start_typing(&ctx.http); let (mut final_result, hook) = match finalize_stream( old_stream, ssrc_state.ssrc_user_data_map.clone(), @@ -245,6 +250,8 @@ async fn handle_silent_speakers<'a>( hooks.push((hook, ssrc)); + drop(_typing); + if kiai_enabled.load(Ordering::Relaxed) { let Some(user_id) = ssrc_state .ssrc_user_id_map diff --git a/scripty_bot_utils/src/handler/normal/ratelimit.rs b/scripty_bot_utils/src/handler/normal/ratelimit.rs index a046d4b..c9eba4f 100644 --- a/scripty_bot_utils/src/handler/normal/ratelimit.rs +++ b/scripty_bot_utils/src/handler/normal/ratelimit.rs @@ -7,6 +7,7 @@ pub async fn ratelimit( method, path, global, + .. }: &RatelimitInfo, ) { let method = method.reqwest_method();