This project will monitor bot login status by interaction with Official Account, there are two requests for the bot:
- send
botId#ding-start
to OA when the bot start; - the bot could auto reply #ding with
botId#dong
;
Set APPID and APPSECRET of Official Account to env
export APPID='xxx'
export APPSECRET='xxx'
$ npm run tsc
$ npm start
-
#ddr
: show all bots' statistics -
#dead
: show all dead bots -
botId#info
: search bot info by bot id
-
botId#clear
: clear warn number and replace the response time by current time -
botId#reset
: reset all attributes of cache object -
botId#del
: delete the bot info