forked from Galactic/galactic-bot
44 lines
1.0 KiB
JavaScript
44 lines
1.0 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: 'KICK',
|
|
length: 3600
|
|
}
|
|
}
|
|
}
|
|
},
|
|
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.silent) }, true)
|
|
};
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = AutoModerationSetting; |