forked from Galactic/galactic-bot
44 lines
931 B
JavaScript
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; |