data1 / code /1749204650103_BotContext.ts
0tuandz's picture
Add code/1749204650103_BotContext.ts
da658f8 verified
raw
history blame
730 Bytes
// 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();