wechaty微信机器人,当机器人被@时做出响应

https://wechaty.js.org/zh/docs/api/message?_highlight=message

 

  if (await msg.mentionSelf()) {
    console.log(
      'this message were mentioned me! [You were mentioned] tip ([有人@我]的提示)'
    )
    await room.say(`不要@微信机器人`)
  }

我开发的人工智能学习网站:

https://chat.xutongbao.top

posted @ 2024-03-18 14:16  徐同保  阅读(10)  评论(0编辑  收藏  举报  来源