mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Add URL to anime and manga
This commit is contained in:
@@ -33,6 +33,7 @@ module.exports = class AnimeCommand extends Command {
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0xF75239)
|
||||
.setAuthor('Kitsu.io', 'https://i.imgur.com/VnIpwgF.png')
|
||||
.setURL(`https://kitsu.io/anime/${body.data[0].attributes.slug}`)
|
||||
.setThumbnail(body.data[0].attributes.posterImage ? body.data[0].attributes.posterImage.original : null)
|
||||
.setTitle(body.data[0].attributes.canonicalTitle)
|
||||
.setDescription(shorten(body.data[0].attributes.synopsis))
|
||||
|
||||
@@ -33,6 +33,7 @@ module.exports = class MangaCommand extends Command {
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0xF75239)
|
||||
.setAuthor('Kitsu.io', 'https://i.imgur.com/VnIpwgF.png')
|
||||
.setURL(`https://kitsu.io/manga/${body.data[0].attributes.slug}`)
|
||||
.setThumbnail(body.data[0].attributes.posterImage ? body.data[0].attributes.posterImage.original : null)
|
||||
.setTitle(body.data[0].attributes.canonicalTitle)
|
||||
.setDescription(shorten(body.data[0].attributes.synopsis))
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "38.2.0",
|
||||
"version": "38.2.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user