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

Method clearCache

fadian/fadian.ts:348–373  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

346 lastUpdateCheck = 0;
347
348 await msg.edit({
349 text: "🧹 已清理缓存,下次使用时将重新下载配置",
350 parseMode: "html",
351 });
352 } catch (error: any) {
353 console.error("[fadian] 清理缓存失败:", error);
354 await msg.edit({
355 text: `❌ <b>清理缓存失败:</b> ${htmlEscape(
356 error?.message || "未知错误"
357 )}`,
358 parseMode: "html",
359 });
360 }
361 }
362
363 // Panel Settings Adapter
364 panelAdapter: PanelSettingsAdapter = {
365 id: "fadian",
366 title: "fadian",
367 description: "粉丝发电配置",
368 category: "插件配置",
369 icon: "⚡",
370 getSchema: (): PanelSettingField[] => [
371 {
372 "key": "enabled",
373 "label": "启用",
374 "type": "boolean",
375 "description": "开启后自动响应发电消息"
376 },

Callers 1

FadianPluginClass · 0.95

Calls 3

errorMethod · 0.80
htmlEscapeFunction · 0.70
editMethod · 0.45

Tested by

no test coverage detected