galactic-bot/structure/client/components/observers/Automoderation.js
2020-09-21 21:49:49 +03:00

44 lines
931 B
JavaScript

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;