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

Function ensureConfigLoaded

eat/eat.ts:372–379  ·  view source on GitHub ↗
(msg?: Api.Message)

Source from the content-addressed store, hash-verified

370}
371
372async function ensureConfigLoaded(msg?: Api.Message): Promise<void> {
373 if (!config || Object.keys(config).length === 0) {
374 if (msg) {
375 await msg.edit({ text: "正在加载表情包配置..." });
376 }
377 await loadConfigResource(baseConfigURL);
378 }
379}
380
381async function handleSetCommand(params: {
382 msg: Api.Message;

Callers 1

fnFunction · 0.85

Calls 2

loadConfigResourceFunction · 0.85
editMethod · 0.45

Tested by

no test coverage detected