Compare commits

..

No commits in common. "90a0aea5bf49cf20b32d47980372795654cdacea" and "3e80f2c5a24bc6cd9ee193e6ba7e1f1309e11a4d" have entirely different histories.

5 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@ const config = {
// Configurable API endpoints
endpoints: {
invidious: ''
invidious: 'https://invidio.us/api/'
},
// Default per-server settings

View file

@ -17,7 +17,7 @@ exports.run = async (client, message) => {
const embed = new MessageEmbed()
embed.setTitle('Now playing')
embed.setThumbnail(client.config.endpoints.invidious + s.video.videoThumbnails[1].url)
embed.setThumbnail('https://invidiou.site' + 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)

View file

@ -20,7 +20,7 @@ exports.run = async (client, message, args) => {
}
const embed = new MessageEmbed()
embed.setThumbnail(client.config.endpoints.invidious + s.video.videoThumbnails[1].url)
embed.setThumbnail('https://invidiou.site' + 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)

View file

@ -45,9 +45,9 @@ exports.getVideoByQuery = async function (client, query, message) {
try {
const id = await ytdl.getURLVideoID(query)
res = await fetch(`${client.config.endpoints.invidious}/api/v1/videos/${id}`)
res = await fetch(`${client.config.endpoints.invidious}v1/videos/${id}`)
} catch (err) {
res = await fetch(`${client.config.endpoints.invidious}/api/v1/search?q=${encodeURIComponent(query)}`)
res = await fetch(`${client.config.endpoints.invidious}v1/search?q=${encodeURIComponent(query)}`)
}
const parsed = await res.json().catch(function (e) {

View file

@ -1,4 +1,4 @@
{
"number": "1.4.8",
"number": "1.4.7",
"changelog": "**1.4 Changelog**\n> • Splatoon commands have been added! check current and upcoming maps and modes with `~splatoonmaps`, current and upcoming salmon run maps, weapons and reward gear with `~salmonrun` and see what gear is on offer in the splatnet shop with `~splatnet`!\n**Notes:**\n> • Music is still broken and likely will be until v2 is released. Fixing v1 would delay v2 a lot, sorry >.<"
}