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

Method handleList

search/search.ts:340–351  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

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) {

Callers 1

handleMethod · 0.95

Calls 1

editMethod · 0.45

Tested by

no test coverage detected