mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
fix audio
This commit is contained in:
parent
8cca54f66c
commit
b56a0730f6
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
let urls = msg.content.match(urlr)
|
let urls = msg.content.match(urlr)
|
||||||
if (urls) {
|
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({
|
.query({
|
||||||
url: urls[0],
|
url: urls[0],
|
||||||
key: process.env.SONGLINK_KEY
|
key: process.env.SONGLINK_KEY
|
||||||
|
@ -53,6 +53,7 @@ module.exports = {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
return editOrReply(context, { embeds: [createEmbed("error", context, `Unable to perform song search.`)] })
|
return editOrReply(context, { embeds: [createEmbed("error", context, `Unable to perform song search.`)] })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue