forked from Galactic/galactic-bot
36 lines
861 B
JavaScript
36 lines
861 B
JavaScript
|
const { Setting } = require('../../../../interfaces/');
|
||
|
|
||
|
class DehoistSetting extends Setting {
|
||
|
|
||
|
constructor(client) {
|
||
|
super(client, {
|
||
|
name: 'dehoist',
|
||
|
module: 'moderation',
|
||
|
resolve: 'GUILD',
|
||
|
default: {
|
||
|
dehoist: {
|
||
|
characters: ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '-', '=', '+', '"', "'", '`', '\\', '/', '[', ']', '>', '<', '.']
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async handle(message, params) {
|
||
|
|
||
|
return {
|
||
|
msg: "fuck off",
|
||
|
error: false
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
fields(guild) {
|
||
|
return {
|
||
|
name: "》Characters",
|
||
|
value: `${guild._settings.dehoist.characters.map((d) => `\`${d === '`' ? `\`` : d}\``).join(', ')}`
|
||
|
};
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module.exports = DehoistSetting;
|