From 2b03a8cdd029c037fb5dc2273272e40f24d1e9d0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 21 Apr 2020 09:52:47 -0400 Subject: [PATCH] Urban is (apparently) nsfw --- README.md | 2 +- commands/search/urban.js | 4 +--- package.json | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5560abf7..aba1b9ea 100644 --- a/README.md +++ b/README.md @@ -335,7 +335,7 @@ Total: 395 * **tumblr:** Responds with information on a Tumblr blog. * **tv-show:** Searches TMDB for your query, getting TV show results. * **twitter:** Responds with information on a Twitter user. -* **urban:** Defines a word, but with Urban Dictionary. +* **urban:** Defines a word, but with Urban Dictionary. (NSFW) * **usps-tracking:** Gets tracking information for a package shipped via USPS. * **vocadb:** Searches VocaDB for your query. * **wattpad:** Searches Wattpad for your query. diff --git a/commands/search/urban.js b/commands/search/urban.js index 1722062c..6d964465 100644 --- a/commands/search/urban.js +++ b/commands/search/urban.js @@ -12,6 +12,7 @@ module.exports = class UrbanCommand extends Command { memberName: 'urban', description: 'Defines a word, but with Urban Dictionary.', clientPermissions: ['EMBED_LINKS'], + nsfw: true, credit: [ { name: 'Urban Dictionary', @@ -31,9 +32,6 @@ module.exports = class UrbanCommand extends Command { } async run(msg, { word }) { - if (msg.guild && this.client.botListGuilds.includes(msg.guild.id) && !msg.channel.nsfw) { - return msg.reply(`The \`${this.name}\` command can only be used in NSFW channels.`); - } try { const { body } = await request .get('http://api.urbandictionary.com/v0/define') diff --git a/package.json b/package.json index bfe573a2..af53d887 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "113.9.0", + "version": "113.9.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {