mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
fixes transcribe thank you for your amazing cdn change discord
This commit is contained in:
parent
ed22cc1578
commit
94b45d3632
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue