/[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 25 by rakin, Mon Jul 29 17:28:16 2024 UTC revision 26 by rakin, Mon Jul 29 17:28:16 2024 UTC
# Line 11  const server = require("./server"); Line 11  const server = require("./server");
11  const AntiRaid = require("./AntiRaid");  const AntiRaid = require("./AntiRaid");
12  const MessageFilter = require("./MessageFilter");  const MessageFilter = require("./MessageFilter");
13  const { random } = require("../commands/pixabay");  const { random } = require("../commands/pixabay");
14    const AFKEngine = require("./AFKEngine");
15    
16  class App {  class App {
17      constructor(rootdir) {      constructor(rootdir) {
# Line 39  class App { Line 40  class App {
40          this.spamFilter = new SpamFilter();          this.spamFilter = new SpamFilter();
41          this.antiRaid = new AntiRaid();          this.antiRaid = new AntiRaid();
42          this.messageFilter = new MessageFilter();          this.messageFilter = new MessageFilter();
43            this.afkEngine = new AFKEngine();
44          this.boot();          this.boot();
45      }      }
46    
# Line 83  class App { Line 85  class App {
85              else if (valid && has && !allowed) {              else if (valid && has && !allowed) {
86                  await this.commandManager.notAllowed();                  await this.commandManager.notAllowed();
87              }              }
88                else if(!valid) {
89                    await this.afkEngine.start(message);
90                }
91          });          });
92    
93          this.on("messageUpdate", async (oldMessage, newMessage) => {          this.on("messageUpdate", async (oldMessage, newMessage) => {

Legend:
Removed from v.25  
changed lines
  Added in v.26

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26