mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Urban is (apparently) nsfw
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "113.9.0",
|
||||
"version": "113.9.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user