galactic-bot/structure/client/components/observers/Automoderation.js

44 lines
931 B
JavaScript
Raw Normal View History

2020-09-21 20:49:49 +02:00
const { Observer } = require('../../../interfaces/');
const CONSTANTS = {};
class Automoderation extends Observer {
constructor(client) {
super(client, {
name: 'automoderation',
priority: 1
});
this.hooks = [
['message', this.filterWords.bind(this)],
['messageUpdate', this.filterWords.bind(this)],
['message', this.filterLinks.bind(this)],
['messageUpdate', this.filterLinks.bind(this)],
['message', this.filterInvites.bind(this)],
['messageUpdate', this.filterInvites.bind(this)],
['message', this.filterMentions.bind(this)]
];
}
async filterWords(message, edited) {
}
async filterLinks(message, edited) {
}
async filterInvites(message, edited) {
}
async filterMentions(message) {
}
}
module.exports = Automoderation;