47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
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: {
|
|
'10': {
|
|
type: 'MUTE',
|
|
length: 60
|
|
},
|
|
'20': {
|
|
type: 'KICK'
|
|
}
|
|
}
|
|
}
|
|
},
|
|
archivable: false
|
|
});
|
|
}
|
|
|
|
async handle(message) {
|
|
|
|
return {
|
|
msg: message.format('S_SILENT_SUCCESS', { value: "fuck yourself" }),
|
|
error: false
|
|
};
|
|
|
|
}
|
|
|
|
fields(guild) {
|
|
return {
|
|
name: "》 Status",
|
|
value: guild.format('SETTING_STATUS', { bool: Boolean(guild._settings.autoModeration.enabled) }, true)
|
|
};
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = AutoModerationSetting; |