9 |
const SpamFilter = require("./SpamFilter"); |
const SpamFilter = require("./SpamFilter"); |
10 |
const server = require("./server"); |
const server = require("./server"); |
11 |
const AntiRaid = require("./AntiRaid"); |
const AntiRaid = require("./AntiRaid"); |
12 |
|
const MessageFilter = require("./MessageFilter"); |
13 |
|
|
14 |
class App { |
class App { |
15 |
constructor(rootdir) { |
constructor(rootdir) { |
36 |
this.logger = new Logger(); |
this.logger = new Logger(); |
37 |
this.spamFilter = new SpamFilter(); |
this.spamFilter = new SpamFilter(); |
38 |
this.antiRaid = new AntiRaid(); |
this.antiRaid = new AntiRaid(); |
39 |
|
this.messageFilter = new MessageFilter(); |
40 |
this.boot(); |
this.boot(); |
41 |
} |
} |
42 |
|
|
54 |
await (this.msg = message); |
await (this.msg = message); |
55 |
|
|
56 |
await this.spamFilter.start(message); |
await this.spamFilter.start(message); |
57 |
|
await this.messageFilter.start(message, this.commandManager); |
58 |
|
|
59 |
await this.commandManager.setMessage(message); |
await this.commandManager.setMessage(message); |
60 |
|
|