create-guilded-bot/packages/cli/utils/globals.ts
2022-11-22 19:13:53 +05:30

14 lines
337 B
TypeScript

export let globalsStore = {
meta: { created: new Date().getDate() + new Date().getTime() },
};
export function setGlobal(global: string, value: any): void {
globalsStore[global] = value;
}
export function getGlobal(global: string): any {
return globalsStore[global];
}
export function getGlobals(): {} {
return globalsStore;
}