2020-07-20 00:42:21 +02:00
|
|
|
const { Setting } = require('../../../../interfaces/');
|
|
|
|
|
|
|
|
class AutoModerationSetting extends Setting {
|
|
|
|
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
|
|
name: 'autoModeration',
|
|
|
|
module: 'moderation',
|
|
|
|
aliases: ['autoMod'],
|
|
|
|
resolve: 'GUILD',
|
|
|
|
default: {
|
|
|
|
autoModeration: {
|
|
|
|
enabled: true,
|
|
|
|
thresholds: {
|
2020-08-31 19:04:23 +02:00
|
|
|
'35': {
|
|
|
|
type: 'MUTE',
|
2020-07-20 00:42:21 +02:00
|
|
|
length: 3600
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-16 09:27:49 +02:00
|
|
|
},
|
|
|
|
archivable: false
|
2020-07-20 00:42:21 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
async handle(message) {
|
|
|
|
|
|
|
|
return {
|
|
|
|
msg: message.format('S_SILENT_SUCCESS', { value: "fuck yourself" }),
|
|
|
|
error: false
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fields(guild) {
|
|
|
|
return {
|
2020-08-16 09:27:49 +02:00
|
|
|
name: "》 Status",
|
2020-08-31 19:04:23 +02:00
|
|
|
value: guild.format('SETTING_STATUS', { bool: Boolean(guild._settings.autoModeration.enabled) }, true)
|
2020-07-20 00:42:21 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = AutoModerationSetting;
|