fixes transcribe thank you for your amazing cdn change discord

This commit is contained in:
derpystuff 2023-10-07 21:02:32 +02:00
parent ed22cc1578
commit 94b45d3632

View file

@ -30,7 +30,7 @@ module.exports = {
}
if(!msg.attachments.first()) return editOrReply(context, { embeds: [createEmbed("warning", context, "No voice message found.")] })
if(!msg.attachments.first().url.endsWith('voice-message.ogg')) return editOrReply(context, { embeds: [createEmbed("warning", context, "No voice message found.")] })
if(!msg.attachments.first().url.split('?')[0].endsWith('voice-message.ogg')) return editOrReply(context, { embeds: [createEmbed("warning", context, "No voice message found.")] })
const recog = await googleSpeechRecognition(context, msg.attachments.first().url)