(msg: Api.Message)
| 493 | if (configCommands.has(subcommand)) { |
| 494 | await handleConfig(msg, subcommand, subValue); |
| 495 | return; |
| 496 | } |
| 497 | |
| 498 | await handleImageEdit(msg, textAfterCommand); |
| 499 | } |
| 500 | |
| 501 | class BananaPlugin extends Plugin { |
| 502 | |
| 503 | description: string = `Nano-Banana 图像编辑插件\n\n${help_text}`; |
| 504 | cmdHandlers: Record<string, (msg: Api.Message) => Promise<void>> = { |
| 505 | banana: handleBananaCommand, |
| 506 | }; |
| 507 | |
| 508 | // Panel Settings Adapter |
| 509 | panelAdapter: PanelSettingsAdapter = { |
| 510 | id: "banana", |
| 511 | title: "banana", |
| 512 | description: "香蕉贴纸 API 配置", |
| 513 | category: "插件配置", |
| 514 | icon: "🍌", |
nothing calls this directly
no test coverage detected