Skip to content

Latest commit

 

History

History
 
 

xp

Go-Wechaty-Bot XP PROTOCOL

仅供学习使用,请勿用于非法用途

puppet-xp 〰️ puppet-padlocal 〰️ puppet-4u 「 Select Gateway 」

Info

Glossary

Gateway : puppet-xp
Server: go-wechaty

Architecture

flowchart LR
    Polyglot-->Python
    Polyglot-->Go
    Polyglot -->Rust
    Python-->Grpc
    Go-->Grpc
    Rust-->Grpc
    Grpc-->Gateway{Gateway}-->xp
    xp-->微信
Loading

⇲ Use

Init (depend main.General)

  1. Checkout branch

    cd xp
  2. Generate Token

    # Generate Token
    WECHATY_TOKEN:curl -s https://www.uuidgenerator.net/api/version4
    WECHATY_PUPPET_SERVICE_TOKEN:"insecure_" + WECHATY_TOKEN
    # WECHATY_TOKEN WECHATY_PUPPET_SERVICE_TOKEN 可同可不同
  3. Modifying a Configuration File

    # wechatyGateway.bat
    @set WECHATY_TOKEN=xxxxxxxxxxxxxxxxxx
    @set WECHATY_PUPPET_SERVICE_TOKEN=insecure_xxxxxxxxxxxxxxxxxx
    @set WECHATY_PUPPET_SERVER_PORT=25000
  4. Install the Software (WeChat.exe Check Download)

    # Must install on Powershell ( because env )
    ## WeChatSetup-v3.3.0.115.exe
    
    npm --registry http://registry.npmmirror.com install -g windows-build-tools
    npm --registry http://registry.npmmirror.com install -g wechaty-puppet-xp
  5. Optional operation

    # Set Environment
    @chdir
    # Google: How to set the path and environment variables in Windows

Start Server

cd xp && .\wechatyGateway.bat # Start puppet-xp Gateway
cd server && go run main.go # Start Server