Partypack/Server/Source/Modules/PagesUtil.ts

13 lines
435 B
TypeScript
Raw Normal View History

2024-01-20 23:34:31 +01:00
import { GenerateFortnitePages } from "../Modules/FNUtil";
import { Msg } from "../Modules/Logger";
export let CachedSongFortnitePages: { [key: string]: unknown } | null = null;
export async function CacheFortnitePages() {
const Result = await GenerateFortnitePages();
if (!Result.Success)
return; // fuck we're fucked
CachedSongFortnitePages = Result.FNPages;
Msg("Successfully reloaded Fortnite pages!");
}