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

Method handleSearch

search/search.ts:417–420  ·  view source on GitHub ↗
(msg: Api.Message, query: string, useSpoiler: boolean, useRandom: boolean)

Source from the content-addressed store, hash-verified

415 }
416
417 private async handleSearch(msg: Api.Message, query: string, useSpoiler: boolean, useRandom: boolean) {
418 if (!query) throw new Error("请输入搜索关键词。");
419 await this.findAndSendVideo(msg, query, useSpoiler, useRandom, "search");
420 }
421
422 private async findAndSendVideo(
423 msg: Api.Message,

Callers 1

handleMethod · 0.95

Calls 1

findAndSendVideoMethod · 0.95

Tested by

no test coverage detected