(msg: Api.Message)
| 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 | }, |
no test coverage detected