diff --git a/README.md b/README.md index 54d966c6..20a08469 100644 --- a/README.md +++ b/README.md @@ -15,19 +15,17 @@ You can invite the bot to your server using Be sure to also join the [home server](https://discord.gg/sbMe32W) for information and support. -## Commands (290) +## Commands (288) ### Utility: * **prefix**: Shows or sets the command prefix. * **eval**: Executes JavaScript code. -* **blacklist**: Blacklists a user from using commands. * **donate**: Responds with Xiao's donation links. * **help**: Displays a list of available commands, or detailed information for a specific command. * **info**: Responds with detailed bot information. * **invite**: Responds with Xiao's invite links. * **ping**: Checks the bot's ping to the Discord server. * **uptime**: Responds with how long the bot has been active. -* **whitelist**: Removes a user from the blacklist. ### Command Management: diff --git a/commands/util/blacklist.js b/commands/util/blacklist.js deleted file mode 100644 index 0828b960..00000000 --- a/commands/util/blacklist.js +++ /dev/null @@ -1,31 +0,0 @@ -const Command = require('../../structures/Command'); - -module.exports = class BlacklistCommand extends Command { - constructor(client) { - super(client, { - name: 'blacklist', - aliases: ['blacklist-add'], - group: 'util', - memberName: 'blacklist', - description: 'Blacklists a user from using commands.', - ownerOnly: true, - args: [ - { - key: 'user', - prompt: 'What user do you want to blacklist?', - type: 'user' - } - ] - }); - } - - run(msg, { user }) { - if (this.client.isOwner(user)) return msg.reply('The bot owner cannot be blacklisted.'); - if (user.bot) return msg.reply('Bots cannot be blacklisted.'); - const blacklist = this.client.provider.get('global', 'blacklist', []); - if (blacklist.includes(user.id)) return msg.reply(`${user.tag} is already blacklisted!`); - blacklist.push(user.id); - this.client.provider.set('global', 'blacklist', blacklist); - return msg.say(`${user.tag} has been blacklisted.`); - } -}; diff --git a/commands/util/whitelist.js b/commands/util/whitelist.js deleted file mode 100644 index 4b1aa2d4..00000000 --- a/commands/util/whitelist.js +++ /dev/null @@ -1,32 +0,0 @@ -const Command = require('../../structures/Command'); - -module.exports = class WhitelistCommand extends Command { - constructor(client) { - super(client, { - name: 'whitelist', - aliases: ['blacklist-remove', 'blacklist-delete', 'unblacklist'], - group: 'util', - memberName: 'whitelist', - description: 'Removes a user from the blacklist.', - ownerOnly: true, - args: [ - { - key: 'user', - prompt: 'What user do you want to whitelist?', - type: 'user' - } - ] - }); - } - - run(msg, { user }) { - if (this.client.isOwner(user)) return msg.reply('The bot owner cannot be blacklisted.'); - if (user.bot) return msg.reply('Bots cannot be blacklisted.'); - const blacklist = this.client.provider.get('global', 'blacklist', []); - if (!blacklist.includes(user.id)) return msg.reply(`${user.tag} is not blacklisted!`); - blacklist.splice(blacklist.indexOf(user.id), 1); - if (!blacklist.length) this.client.provider.remove('global', 'blacklist'); - else this.client.provider.set('global', 'blacklist', blacklist); - return msg.say(`${user.tag} has been whitelisted.`); - } -}; diff --git a/package.json b/package.json index b0feedb1..2855d558 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "82.0.0", + "version": "83.0.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {