騰訊雲+wechaty實現微信群文字訊息自動轉發(跨群聊天)
阿新 • • 發佈:2020-12-27
伺服器配置:輕量應用伺服器,地域:矽谷,映象:Node.js (CentOS 7.6 64位作業系統),最低的24元/月套餐
1. 在控制檯上重置root密碼,用root密碼登入,建立普通使用者,安裝git,rz/sz,chrome。
https://intoli.com/blog/installing-google-chrome-on-centos/ 提供了一行命令安裝chrome的方法
curl https://intoli.com/install-google-chrome.sh | bash
2. 按照https://github.com/wechaty/wechaty-getting-started介紹的步驟安裝依賴
git clone https://github.com/wechaty/wechaty-getting-started.git cd wechaty-getting-started npm install
3. 將examples/ding-dong-bot.ts改為以下程式碼
/** * Wechaty - WeChat Bot SDK for Personal Account, Powered by TypeScript, Docker, and