fix audio

This commit is contained in:
derpystuff 2023-08-27 17:25:38 +02:00
parent 8cca54f66c
commit b56a0730f6

View file

@ -31,7 +31,7 @@ module.exports = {
}
let urls = msg.content.match(urlr)
if (urls) {
let songlink = await superagent.get(`https://api.song.link/v1-alpha.1/links?url=${encodeURIComponent(urls[0])}`)
let songlink = await superagent.get(`https://api.song.link/v1-alpha.1/links`)
.query({
url: urls[0],
key: process.env.SONGLINK_KEY
@ -53,6 +53,7 @@ module.exports = {
})
}
} catch (e) {
console.log(e)
return editOrReply(context, { embeds: [createEmbed("error", context, `Unable to perform song search.`)] })
}
},