Add aliases, add nsfw filter to chuck norris

This commit is contained in:
Dragon Fire
2020-06-08 00:00:31 -04:00
parent 9307d46283
commit b49d2f4607
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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.',
+2 -1
View File
@@ -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) {
+1 -1
View File
@@ -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.',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "116.5.2",
"version": "116.5.3",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {