参考: https://github.com/leochen-g/wechatBot
npm install
node index.js
npm run pm2deploy
在根目录新建 saul.config.js
, 内容如下:
module.exports = {
<!-- 企业微信机器人,在服务退出的时候会发送消息提醒 -->
wechatRobotKey: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx'
}
注意:
- node 版本需大于 16.0
- 执行
sh ./centos.sh
安装对应依赖