remove hardcoded invidious instances

This commit is contained in:
Emily 2021-10-15 22:28:24 +11:00
parent 3e80f2c5a2
commit 55c546aa6a
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ exports.run = async (client, message) => {
const embed = new MessageEmbed() const embed = new MessageEmbed()
embed.setTitle('Now playing') embed.setTitle('Now playing')
embed.setThumbnail('https://invidiou.site' + s.video.videoThumbnails[1].url) embed.setThumbnail(client.config.endpoints.invidious + s.video.videoThumbnails[1].url)
embed.setColor(client.embedColour(message)) embed.setColor(client.embedColour(message))
embed.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`) embed.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`)
embed.addField('Channel:', s.video.author, true) embed.addField('Channel:', s.video.author, true)

View file

@ -20,7 +20,7 @@ exports.run = async (client, message, args) => {
} }
const embed = new MessageEmbed() const embed = new MessageEmbed()
embed.setThumbnail('https://invidiou.site' + s.video.videoThumbnails[1].url) embed.setThumbnail(client.config.endpoints.invidious + s.video.videoThumbnails[1].url)
embed.setColor(client.embedColour(message)) embed.setColor(client.embedColour(message))
embed.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`) embed.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`)
embed.addField('Channel:', s.video.author, true) embed.addField('Channel:', s.video.author, true)