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

Method execute

ai/ai.ts:4405–4412  ·  view source on GitHub ↗
(
    msg: Api.Message,
    args: string[],
    _prefixes: string[],
  )

Source from the content-addressed store, hash-verified

4403
4404 async execute(
4405 msg: Api.Message,
4406 args: string[],
4407 _prefixes: string[],
4408 ): Promise<void> {
4409 const question = args.join(" ").trim();
4410 await this.runQuestion(msg, question);
4411 }
4412
4413 async askFromReply(msg: Api.Message, trigger?: Api.Message): Promise<void> {
4414 const replyMsg = await safeGetReplyMessage(msg);
4415 requireUser(!!replyMsg, "至少需要一条提示");

Callers

nothing calls this directly

Calls 1

runQuestionMethod · 0.95

Tested by

no test coverage detected