KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
wechat-bot
★ 26
Open GitHub ↗
运行在docker的wechat机器人
Download README (.md)
Explore Similar Repositories
hackspacecon-2023
:
Workshop & Talk Slide Decks from HackSpaceCon
Tap-fap
:
Website that use Eporner API to watch porn videos
SmartPointers
:
This repo includes all different versions of SmartPointer in Delphi to simulate a garbage collector.
segment-anything-and-yolov8
:
Object segmentation in collaboration with Segment Anyting Model and Yolov8
doco
:
Doco builds documentation sites from markdown documents and folders.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
wechat-bot
?
Download (.md)
# wechat-bot 运行在docker中的微信机器人支持批量部署代理设置。 文件发送与接收图片解析多语言sdk,http接口方便对接。 # docker-compose ```agsl version: "3" services: wechat-bot: image: danbai225/wechat-bot:latest container_name: wechat-bot restart: always ports: - "8080:8080" - "5555:5555" - "5556:5556" - "5900:5900" extra_hosts: - "dldir1.qq.com:127.0.0.1" volumes: - "./data:/home/app/data" - "./wxFiles:/home/app/WeChat Files" environment: #- PROXY_IP=1.1.1.115 #如果设置则使用代理 - PROXY_PORT=7777 - PROXY_USER=user - PROXY_PASS=pass ``` # use ```go package main import ( logs "github.com/danbai225/go-logs" wechatbot "github.com/danbai225/wechat-bot" ) func main() { client, err := wechatbot.NewClient("ws://serverIP:5555", "http://serverIP:5556") if err != nil { logs.Err(err) return } client.SetOnWXmsg(func(msg []byte, Type int, reply *wechatbot.Reply) { if Type == 1 { logs.Info(string(msg)) } }) select {} } ```