| 338 | } |
| 339 | |
| 340 | private async handleList(msg: Api.Message) { |
| 341 | if (this.config.channelList.length === 0) { |
| 342 | await msg.edit({ text: "没有添加任何搜索频道。" }); |
| 343 | return; |
| 344 | } |
| 345 | let listText = "**当前搜索频道列表:**\n\n"; |
| 346 | this.config.channelList.forEach((channel, index) => { |
| 347 | const isDefault = channel.handle === this.config.defaultChannel ? " (默认)" : ""; |
| 348 | listText += `${index + 1}. ${channel.title}${isDefault}\n`; |
| 349 | }); |
| 350 | await msg.edit({ text: listText }); |
| 351 | } |
| 352 | |
| 353 | private async handleExport(msg: Api.Message) { |
| 354 | if (this.config.channelList.length === 0) { |