forked from Galactic/galactic-bot
43 lines
981 B
JavaScript
43 lines
981 B
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: 3600
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async handle(message) {
|
||
|
|
||
|
return {
|
||
|
msg: message.format('S_SILENT_SUCCESS', { value: "fuck yourself" }),
|
||
|
error: false
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
fields(guild) {
|
||
|
return {
|
||
|
name: "》Enabled",
|
||
|
value: `\`${guild._settings.silent}\``
|
||
|
};
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module.exports = AutoModerationSetting;
|