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

Method askFromReply

ai/ai.ts:4414–4419  ·  view source on GitHub ↗
(msg: Api.Message, trigger?: Api.Message)

Source from the content-addressed store, hash-verified

4412
4413 async askFromReply(msg: Api.Message, trigger?: Api.Message): Promise<void> {
4414 const replyMsg = await safeGetReplyMessage(msg);
4415 requireUser(!!replyMsg, "至少需要一条提示");
4416 const question = getMessageText(replyMsg).trim();
4417 await this.runQuestion(msg, question, trigger);
4418 }
4419
4420 async handleQuestion(
4421 msg: Api.Message,
4422 question: string,

Callers 1

AIPluginClass · 0.80

Calls 3

runQuestionMethod · 0.95
requireUserFunction · 0.70
getMessageTextFunction · 0.70

Tested by

no test coverage detected