37 lines
893 B
JavaScript
37 lines
893 B
JavaScript
const { Setting } = require('../../../../interfaces/');
|
|
|
|
class DehoistSetting extends Setting {
|
|
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'dehoist',
|
|
module: 'moderation',
|
|
resolve: 'GUILD',
|
|
default: {
|
|
dehoist: {
|
|
characters: ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '-', '=', '+', '"', "'", '`', '\\', '/', '[', ']', '>', '<', '.']
|
|
}
|
|
},
|
|
archivable: false
|
|
});
|
|
}
|
|
|
|
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; |