From b49d2f4607ac1a1389f9d5d311825b9970b853f8 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 8 Jun 2020 00:00:31 -0400 Subject: [PATCH] Add aliases, add nsfw filter to chuck norris --- commands/info/emoji-image.js | 2 +- commands/random-res/chuck-norris.js | 3 ++- commands/search/anime-character.js | 2 +- package.json | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/info/emoji-image.js b/commands/info/emoji-image.js index cea00f9a..492eaa96 100644 --- a/commands/info/emoji-image.js +++ b/commands/info/emoji-image.js @@ -4,7 +4,7 @@ module.exports = class EmojiImageCommand extends Command { constructor(client) { super(client, { name: 'emoji-image', - aliases: ['big-emoji', 'emote-image', 'big-emote'], + aliases: ['big-emoji', 'emote-image', 'big-emote', 'emoji-img', 'emote-img'], group: 'info', memberName: 'emoji-image', description: 'Responds with an emoji\'s full-scale image.', diff --git a/commands/random-res/chuck-norris.js b/commands/random-res/chuck-norris.js index 71e9f6a1..e84fc06c 100644 --- a/commands/random-res/chuck-norris.js +++ b/commands/random-res/chuck-norris.js @@ -39,7 +39,8 @@ module.exports = class ChuckNorrisCommand extends Command { .get('http://api.icndb.com/jokes/random') .query({ escape: 'javascript', - firstName: name + firstName: name, + exclude: msg.channel.nsfw ? '' : '[explicit]' }); return msg.say(body.value.joke); } catch (err) { diff --git a/commands/search/anime-character.js b/commands/search/anime-character.js index 4d957de3..634d95a2 100644 --- a/commands/search/anime-character.js +++ b/commands/search/anime-character.js @@ -48,7 +48,7 @@ module.exports = class AnimeCharacterCommand extends Command { constructor(client) { super(client, { name: 'anime-character', - aliases: ['anilist-character', 'character', 'manga-character', 'manga-char', 'ani-char', 'char'], + aliases: ['anilist-character', 'character', 'manga-character', 'manga-char', 'ani-char', 'char', 'anime-char'], group: 'search', memberName: 'anime-character', description: 'Searches AniList for your query, getting character results.', diff --git a/package.json b/package.json index 6040097a..5b426f7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.5.2", + "version": "116.5.3", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {