From c9868d72a1d504c73e6490ce9f7aaa696c2dec4f Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sat, 5 Jul 2025 20:17:21 +0200 Subject: [PATCH] Remove trash ouput --- events/guild/voiceStateUpdate.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/events/guild/voiceStateUpdate.js b/events/guild/voiceStateUpdate.js index 95c3d24..31ea54a 100644 --- a/events/guild/voiceStateUpdate.js +++ b/events/guild/voiceStateUpdate.js @@ -281,6 +281,9 @@ module.exports = async (client, oldState, voiceState) => { const response = JSON.parse(stdout); response.text = response.text.replace(/Sous-titres réalisés par la communauté d'Amara.org/g, ""); + if (response.text.toLowerCase().contains("je vous remercie d'avoir regardé cette vidéo")) { + return ""; // Output is trash, ignore it + } resolve(response.text || ""); } catch (parseError) {