cmt
this is a wechaty plugin to monitor whether your bot got kicked out of group chat.
just few line of code to implement this instead fussy judging.
yarn add "wechaty-got-kicked-out"
or
npm install "wechaty-got-kicked-out" --save
import {Wechaty} from "wechaty" import {GotKicked} from "wechaty-got-kicked-out" const bot = new Wechaty({ name:"wechaty-got-kicked-out" }) bot.use(GotKicked({ onKick(room, remover, date){ console.log(` bot just got kick out of ${await room.topic()}[${room.id}] by ${remover ? remove.name(): 'it self'} --date:${date} `) }, /* comming soon... whiltList:{ id:"19710388933@chatroom" // or id:["19710388933@chatroom","98345982793@chatroom"] // or topic:"微信群001" // or topic:["微信群001","微信群002"] } */ })) bot.start() .catch(console.error)
npm run test
npm run build
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Wechaty-Got-Kicked-Out
What is this?
this is a wechaty plugin to monitor whether your bot got kicked out of group chat.
just few line of code to implement this instead fussy judging.
Installation
or
Usage
Test
Build
Maintainers
Copyright & License