From 55c546aa6a8ba8868c942bf92bc2b795d4591a89 Mon Sep 17 00:00:00 2001 From: Emily Wood Date: Fri, 15 Oct 2021 22:28:24 +1100 Subject: [PATCH] remove hardcoded invidious instances --- src/commands/nowplaying.js | 2 +- src/commands/songinfo.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/nowplaying.js b/src/commands/nowplaying.js index 69a5b22..288e51a 100644 --- a/src/commands/nowplaying.js +++ b/src/commands/nowplaying.js @@ -17,7 +17,7 @@ exports.run = async (client, message) => { const embed = new MessageEmbed() 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.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`) embed.addField('Channel:', s.video.author, true) diff --git a/src/commands/songinfo.js b/src/commands/songinfo.js index 6d3230c..ac74bbb 100644 --- a/src/commands/songinfo.js +++ b/src/commands/songinfo.js @@ -20,7 +20,7 @@ exports.run = async (client, message, args) => { } 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.setDescription(`**[${s.video.title}](https://www.youtube.com/watch?v=${s.video.videoId})**`) embed.addField('Channel:', s.video.author, true)