Remove 15 commands, patreon and bot list stuff

This commit is contained in:
Dragon Fire
2024-03-20 21:02:24 -04:00
parent 2c180f39b7
commit b58a112fc7
48 changed files with 5 additions and 1963 deletions
-9
View File
@@ -4,7 +4,6 @@ const path = require('path');
const { stripIndents } = require('common-tags');
const Registry = require('./Registry');
const Dispatcher = require('./Dispatcher');
const Patreon = require('../structures/Patreon');
require('./Extensions');
module.exports = class CommandClient extends Client {
@@ -17,7 +16,6 @@ module.exports = class CommandClient extends Client {
this.invite = options.invite || null;
this.registry = new Registry(this);
this.dispatcher = new Dispatcher(this);
this.patreon = new Patreon();
this.blacklist = { user: [], guild: [] };
this._throttlingTimeouts = new Map();
@@ -85,13 +83,6 @@ module.exports = class CommandClient extends Client {
await msg.reply(`The \`${command.name}\` command can only be used in NSFW channels.`);
return;
}
if (command.patronOnly && !this.patreon.isPatron(msg.author.id)) {
await msg.reply(stripIndents`
The \`${command.name}\` command can only be used by Patrons.
Visit <https://www.patreon.com/xiaodiscord> to sign-up!
`);
return;
}
if (msg.guild && command.userPermissions.length) {
for (const permission of command.userPermissions) {
if (msg.channel.permissionsFor(msg.author).has(permission)) continue;
-1
View File
@@ -17,7 +17,6 @@ module.exports = class Command {
this.ownerOnly = options.ownerOnly || false;
this.nsfw = options.nsfw || false;
this.guildOnly = options.guildOnly || false;
this.patronOnly = options.patronOnly || false;
this.guarded = options.guarded || false;
this.unknown = options.unknown || false;
this.throttling = options.throttling || { usages: 2, duration: 5 };