create-guilded-bot/packages/cli/utils/globals.ts

15 lines
337 B
TypeScript
Raw Normal View History

2022-11-22 13:43:53 +00:00
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;
}