Datasets:
// 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(); | |