Giter VIP home page Giter VIP logo

go-wechaty-bot's Introduction

Go-Wechaty-Bot

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

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

Architecture

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-->微信
Loading

General

  1. Clone Repo

    git clone https://github.com/XRSec/gobot.git wechatbot
    cd wechatbot
  2. Install the Packages

    # node-v16
    npm --registry http://registry.npmmirror.com install -g wechaty
  3. 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
  4. Checking the Network Environment

if Gateway near Server {
IP = NAT_IP
} else {
IP = InterNet_IP
}
if PORT on {
continue
} else {
os.exit(0)
}

⚓️ Re

  1. wechat-bot

  2. puppet-services

  3. issues

⚠️ Debug

  1. Network

    curl cip.cc
    curl -s https://api.chatie.io/v0/hosties/[WECHATY_TOKEN]
  2. Help me improve this project

  3. Submit bugs and interesting features

Update Repo

  1. TODO && example.yaml
  2. Update.md && Log.md

Contact me

Reply to group chat with us

wxid: Tencent-IoT-Lab

go-wechaty-bot's People

Contributors

ran-xing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.