forked from Galactic/galactic-bot
69 lines
1.6 KiB
JavaScript
69 lines
1.6 KiB
JavaScript
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; |