Urban is (apparently) nsfw

This commit is contained in:
Dragon Fire
2020-04-21 09:52:47 -04:00
parent 694dd85190
commit 2b03a8cdd0
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -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.
+1 -3
View File
@@ -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')
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "113.9.0",
"version": "113.9.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {