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

Function handleSetCommand

eat/eat.ts:381–397  ·  view source on GitHub ↗
(params: {
  msg: Api.Message;
  url: string;
})

Source from the content-addressed store, hash-verified

379}
380
381async function handleSetCommand(params: {
382 msg: Api.Message;
383 url: string;
384}): Promise<void> {
385 const { msg, url } = params;
386 await msg.edit({
387 text: "强制更新表情包配置中,请稍等...",
388 });
389 await loadConfigResource(url, true);
390 const stickerList = Object.keys(config)
391 .sort((a, b) => a.localeCompare(b))
392 .map((key) => `${key} - ${config[key].name}`)
393 .join("\n");
394 await msg.edit({
395 text: `✅ 已强制更新表情包配置\n当前表情包:\n${stickerList}`,
396 });
397}
398
399const fn = async (
400 msg: Api.Message,

Callers 1

fnFunction · 0.85

Calls 2

loadConfigResourceFunction · 0.85
editMethod · 0.45

Tested by

no test coverage detected