MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / ensureFonts

Function ensureFonts

quote/generate.js:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25let fontsLoaded = false;
26async function ensureFonts() {
27 if (fontsLoaded) return;
28 try {
29 await QuoteGenerate.loadFonts();
30 } catch (error) {
31 console.warn("quote generate: loadFonts failed", error && error.message);
32 }
33 fontsLoaded = true;
34}
35
36const ALLOWED_EMOJI_BRANDS = new Set(Object.keys(emojiBrands));
37
38const QUOTE_ASSETS_DIR = path.join(process.cwd(), "assets", "quote");

Callers 1

generateQuoteFunction · 0.85

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected