Code Monkey home page Code Monkey logo

wechatpush's Introduction

WeChatPush

感谢eatmoreapple/openwechat提供的API

微信消息转发,仅转发,无回复功能

  • 借助QQ邮箱使用MIPush推送(理论支持各家系统),再也不用把微信挂后台了
  • 无需重复扫码登录
  • 支持多个微信号同时转发
  • web可视化配置

预览

缺陷

  • 只支持文本消息转发,其余消息只会发送通知,不能查看
  • 群聊消息只接受@所有人消息,可以自己修改代码

部署

安装docker

curl -sSL https://get.docker.com/ | sh

运行容器,修改好环境变量的值

docker run -d \
	--name WxPush \
	-e FROM_NAME=#发送者邮箱 \
	-e FROM_ADDRESS=#发送者名字 \
	-e TO_NAME=#收件人名字 \
	-e TO_ADDRESS=#收件人邮箱 \
	-e SMTP_SERVER=smtp.exmail.qq.com \
	-e SMTP_PORT=465 \
	-e USERNAME=#smtp的邮箱地址 和FROM_NAME的值是一样的 \
	-e PASSWORD=#smtp的邮箱密码 \
	-v ./WxPush:/app/data \
	bestrui/wxpush:latest
# 如果镜像拉取速度慢,可以使用代理`docker.nju.edu.cn/bestrui/wxpush:latest`

容器运行后会在控制台打印登录二维码的链接

docker logs WxPush -f

建议增加一个cron定时任务,不要24小时一直挂着

crontab -e

46 23 * * * docker stop WxPush  # 每天23:46 停止容器
33  8 * * * docker start WxPush # 每天 8:33 启动容器

wechatpush's People

Contributors

bestruirui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

wechatpush's Issues

按照你的方法做的,但是报空指针错误

热登陆失败,尝试免扫码登录
访问下面网址扫描二维码登录
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5fd624]

goroutine 1 [running]:
bestrui/wechatpush/mail.SendEmail({0x715388, 0x6}, {0xc0003a0120, 0x2f})
/app/mail/mail.go:61 +0x424
bestrui/wechatpush/openwechat.PrintlnQrcodeUrl({0xc000349210, 0xc})
/app/openwechat/bot.go:440 +0x7a
bestrui/wechatpush/openwechat.(*LoginChecker).CheckLogin(0xc0000b3ce0)
/app/openwechat/bot_login.go:251 +0x50
bestrui/wechatpush/openwechat.(*ScanLogin).checkLogin(0xc00005a380?, 0x79e708?, {0xc000349210?, 0x7f85c3320248?})
/app/openwechat/bot_login.go:185 +0x91
bestrui/wechatpush/openwechat.(*ScanLogin).Login(0xc000014350?, 0xc0000e2000?)
/app/openwechat/bot_login.go:172 +0x58
bestrui/wechatpush/openwechat.(*Bot).login(0xc0000e2000, {0x79c100, 0xc000014350})
/app/openwechat/bot.go:62 +0xab
bestrui/wechatpush/openwechat.(*Bot).Login(...)
/app/openwechat/bot.go:74
bestrui/wechatpush/openwechat.(*RetryLoginOption).OnError(0x40e59b?, 0xc0000e2000, {0x79c140?, 0x96e750?})
/app/openwechat/bot_login.go:107 +0x85
bestrui/wechatpush/openwechat.BotOptionGroup.OnError({0xc000014330?, 0xc0000e2000?, 0xc000014340?}, 0xc0000e2000, {0x79c140, 0x96e750})
/app/openwechat/bot_login.go:61 +0x70
bestrui/wechatpush/openwechat.(*Bot).login(0xc0000e2000, {0x79c040, 0xc000014340})
/app/openwechat/bot.go:63 +0xcf
bestrui/wechatpush/openwechat.(*Bot).PushLogin(...)
/app/openwechat/bot.go:94
main.main()
/app/main.go:21 +0x3c6

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.