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) {