File size: 730 Bytes
da658f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// BotContext.ts
class BotContext {
  commands: Map<any, any>;
  events: Map<any, any>;
  cd: Map<any, any>;
  eventRegistered: any[];
  onReaction: any[];
  onReply: any[];
  mainPath: string;
  configPath: string;
  api: any;
  timeStart: any;
  version: string;
  uploadQueue: any[];
  uploadInterval: any;

  constructor() {
    this.commands = new Map();
    this.events = new Map();
    this.cd = new Map();
    this.eventRegistered = [];
    this.onReaction = [];
    this.onReply = [];
    this.mainPath = process.cwd();
    this.configPath = "";
    this.api = null;
    this.timeStart = null;
    this.version = "1.0.0";
    this.uploadQueue = [];
    this.uploadInterval = null;
  }
}

export default new BotContext();