diff --git a/package.json b/package.json index e65e149..350745f 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "New iteration of GalacticBot", "main": "index.js", "scripts": { - "start": "NODE_ENV=production node --trace-warnings index.js", - "dev": "NODE_ENV=development node --trace-warnings index.js", + "start": "node --trace-warnings index.js", + "dev": "node --trace-warnings index.js", "debug": "node --trace-warnings --inspect index.js", "update": "git pull && cd api && yarn update" }, diff --git a/structure/client/components/commands/administration/MassBan.js b/structure/client/components/commands/administration/MassBan.js new file mode 100644 index 0000000..71bf92d --- /dev/null +++ b/structure/client/components/commands/administration/MassBan.js @@ -0,0 +1,85 @@ +const { Command } = require('../../../../interfaces/'); +const { Ban } = require('../../../../moderation/infractions/'); + +class MassBanCommand extends Command { + + constructor(client) { + + super(client, { + name: 'massban', + module: 'administration', + usage: " [duration] [reason]", + clientPermissions: ['BAN_MEMBERS'], + memberPermissions: ['BAN_MEMBERS'], + aliases: [], + examples: [ + "@nolan#2887 @Navy.gif#1998 24h raiding the server" + ], + restricted: true, + hidden: true, + arguments: [ + { + name: 'points', + aliases: ['point', 'modpoints', 'modpoint', 'pts', 'pt'], + type: 'INTEGER', + types: ['VERBAL', 'FLAG'], + usage: '', + default: (guild) => { + return guild._settings.moderationPoints.points.KICK; + }, + min: 0, max: 100, + ignoreInvalid: true, + required: true + }, + { + name: 'expiration', + aliases: ['expire', 'expires', 'expirations'], + type: 'TIME', + types: ['FLAG'], + usage: '