/[sudobot]/trunk/src/App.js
ViewVC logotype

Diff of /trunk/src/App.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20 by rakin, Mon Jul 29 17:28:14 2024 UTC revision 22 by rakin, Mon Jul 29 17:28:15 2024 UTC
# Line 9  const Logger = require("./Logger"); Line 9  const Logger = require("./Logger");
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) {
# Line 35  class App { Line 36  class App {
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    
# Line 52  class App { Line 54  class App {
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    

Legend:
Removed from v.20  
changed lines
  Added in v.22

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26