diff --git a/commands/randomimg/xkcd.js b/commands/randomimg/xkcd.js index 2a91cdb8..aa757b9c 100644 --- a/commands/randomimg/xkcd.js +++ b/commands/randomimg/xkcd.js @@ -35,6 +35,7 @@ module.exports = class XKCDCommand extends Command { if (type === 'today') { const embed = new RichEmbed() .setTitle(`${current.body.num} - ${current.body.title}`) + .setURL(`https://xkcd.com/${current.body.num}`) .setImage(current.body.img) .setFooter(current.body.alt); return msg.embed(embed); @@ -44,6 +45,7 @@ module.exports = class XKCDCommand extends Command { .get(`https://xkcd.com/${random}/info.0.json`); const embed = new RichEmbed() .setTitle(`${body.num} - ${body.title}`) + .setURL(`https://xkcd.com/${body.num}`) .setImage(body.img) .setFooter(body.alt); return msg.embed(embed); diff --git a/package.json b/package.json index 4cb14cb3..3ac7ba80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "21.1.1", + "version": "21.1.2", "description": "A Discord Bot", "main": "Shard.js", "scripts": {