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

44 lines
1.0 KiB
JavaScript
Raw Normal View History

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: {
'10': {
type: 'KICK',
2020-07-20 00:42:21 +02:00
length: 3600
}
}
}
},
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 {
name: "》 Status",
value: guild.format('SETTING_STATUS', { bool: Boolean(guild._settings.silent) }, true)
2020-07-20 00:42:21 +02:00
};
}
}
module.exports = AutoModerationSetting;