From 067aab37692e1d7e2f70f1e717e187f136414734 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 10 Sep 2017 18:20:57 +0000 Subject: [PATCH] Add URL to anime and manga --- commands/search/anime.js | 1 + commands/search/manga.js | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/search/anime.js b/commands/search/anime.js index babb2ada..0a9a070c 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -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)) diff --git a/commands/search/manga.js b/commands/search/manga.js index 77f110cd..0a46b29d 100644 --- a/commands/search/manga.js +++ b/commands/search/manga.js @@ -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)) diff --git a/package.json b/package.json index f095bb5d..7c66c9b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "38.2.0", + "version": "38.2.1", "description": "Your personal server companion.", "main": "Shard.js", "scripts": {