Datasets:
Add code/1749204650103_BotContext.ts
Browse files
code/1749204650103_BotContext.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// BotContext.ts
|
| 2 |
+
class BotContext {
|
| 3 |
+
commands: Map<any, any>;
|
| 4 |
+
events: Map<any, any>;
|
| 5 |
+
cd: Map<any, any>;
|
| 6 |
+
eventRegistered: any[];
|
| 7 |
+
onReaction: any[];
|
| 8 |
+
onReply: any[];
|
| 9 |
+
mainPath: string;
|
| 10 |
+
configPath: string;
|
| 11 |
+
api: any;
|
| 12 |
+
timeStart: any;
|
| 13 |
+
version: string;
|
| 14 |
+
uploadQueue: any[];
|
| 15 |
+
uploadInterval: any;
|
| 16 |
+
|
| 17 |
+
constructor() {
|
| 18 |
+
this.commands = new Map();
|
| 19 |
+
this.events = new Map();
|
| 20 |
+
this.cd = new Map();
|
| 21 |
+
this.eventRegistered = [];
|
| 22 |
+
this.onReaction = [];
|
| 23 |
+
this.onReply = [];
|
| 24 |
+
this.mainPath = process.cwd();
|
| 25 |
+
this.configPath = "";
|
| 26 |
+
this.api = null;
|
| 27 |
+
this.timeStart = null;
|
| 28 |
+
this.version = "1.0.0";
|
| 29 |
+
this.uploadQueue = [];
|
| 30 |
+
this.uploadInterval = null;
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
export default new BotContext();
|