galactic-bot/structure/client/components/settings/moderation/ModerationPoints.js

69 lines
1.6 KiB
JavaScript
Raw Normal View History

const { Setting } = require('../../../../interfaces/');
class ModerationPointsSetting extends Setting {
constructor(client) {
super(client, {
name: 'moderationPoints',
module: 'moderation',
aliases: [
'moderationPoint',
'modPoints',
'modPoint'
],
usage: '',
resolve: 'GUILD',
examples: [
],
default: {
moderationPoints: {
enabled: false,
points: {
WARN: 0,
MUTE: 0,
KICK: 0,
SOFTBAN: 0,
BAN: 0,
VCMUTE: 0,
VCKICK: 0,
VCBAN: 0
},
expirations: {
WARN: 0,
KICK: 0,
MUTE: 0,
SOFTBAN: 0,
BAN: 0,
VCMUTE: 0,
VCKICK: 0,
VCBAN: 0
},
assocations: {},
multiplier: false //points*expiration = new expiration..?
}
}
});
this.client = client;
}
async handle(message, args) {
//to do
return {
msg: 'fuck off',
error: false
};
}
async fields(guild) {
const setting = guild._settings[this.index];
}
}
module.exports = ModerationPointsSetting;