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

Method handleStickerBotInteraction

gif/gif.ts:407–434  ·  view source on GitHub ↗
(stickersBot: any, statusMsg: Api.Message)

Source from the content-addressed store, hash-verified

405 }
406 }
407
408 private async handleStickerBotInteraction(stickersBot: any, statusMsg: Api.Message): Promise<void> {
409 // 等待机器人的回复
410 await this.sleep(3000);
411
412 // 发送命令创建或添加到贴纸包
413 await statusMsg.edit({ text: "📝 正在创建/更新贴纸包..." });
414
415 // 发送 /addsticker 命令
416 await this.client.sendMessage(stickersBot, {
417 message: `/addsticker`
418 });
419
420 await this.sleep(2000);
421
422 // 发送贴纸包名称
423 await this.client.sendMessage(stickersBot, {
424 message: this.config.defaultStickerPackName
425 });
426
427 await this.sleep(2000);
428
429 // 发送表情
430 await this.client.sendMessage(stickersBot, {
431 message: this.config.defaultEmoji
432 });
433
434 await statusMsg.edit({ text: "✨ 贴纸包操作完成!" });
435 }
436
437 private getRandomEmoji(): string {

Callers 1

autoAddToStickerPackMethod · 0.95

Calls 2

sleepMethod · 0.95
editMethod · 0.45

Tested by

no test coverage detected