仅供学习使用,请勿用于非法用途!
flowchart LR
Polyglot-->Python
Polyglot-->Go
Polyglot -->Rust
Python-->Grpc
Go-->Grpc
Rust-->Grpc
Grpc-->Gateway{Gateway}-->Puppet{Puppet}
Grpc-->Docker{Docker}-->Puppet{Puppet}
Puppet{Puppet}-->xp-->微信
Puppet{Puppet}-->padlcoal-->微信
Puppet{Puppet}-->wechat4u-->微信
-
Clone Repo
git clone https://github.com/XRSec/Go-Wechaty-Bot.git cd Go-Wechaty-Bot git submodule update --init --recursive
-
Install the Packages ( ! Docker)
# node-v16 npm --registry http://registry.npmmirror.com install -g wechaty
-
Edit
Server/config.yaml
.bot: adminid: wxid_xxxxx name: xxxxxxxx ding: keyword: Wechaty token: xxxxxxxxxxxxxxxxxx url: https://oapi.dingtalk.com/robot/send?access_token= tuling: token: xxxxxxxxxxxxxxxx&info= url: http://www.tuling123.com/openapi/api?key= wechaty: wechaty_puppet_endpoint: 127.0.0.1:25001 wechaty_puppet_service_token: insecure_xxxxxxxxxxxxxxxxxxxxxx wxopenai: env: online token: xxxxxxxxxxxxxxxxxxxxx
-
Checking the Network Environment
if Gateway.IP = Server.IP { IP = NAT_IP // 192.168.0.10 return // pass port } else { IP = InterNet_IP // curl cip.cc | https://ip.skk.moe/ } if PORT on Server is open { continue } else { os.exit(0) // port can't vist } // ncat ip port -vv // test
-
Network
curl cip.cc curl -s https://api.chatie.io/v0/hosties/[WECHATY_TOKEN]
-
Help me improve this project
-
Submit bugs and interesting features
- TODO && example.yaml
- Update.md && Log.md
Reply to group chat with us