{"id":36572277,"url":"https://github.com/xiaobinqt/go-wxbot","last_synced_at":"2026-01-12T07:19:13.902Z","repository":{"id":45769391,"uuid":"441693701","full_name":"xiaobinqt/go-wxbot","owner":"xiaobinqt","description":"Go 微信机器人，微信机器人定时提醒。Go WeChat bot and regular reminder.","archived":false,"fork":false,"pushed_at":"2023-09-12T01:43:29.000Z","size":1783,"stargazers_count":68,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-09-12T09:38:36.126Z","etag":null,"topics":["golang","wechat","wechat-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaobinqt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-25T14:17:41.000Z","updated_at":"2023-09-04T15:20:02.000Z","dependencies_parsed_at":"2023-02-10T07:15:16.118Z","dependency_job_id":null,"html_url":"https://github.com/xiaobinqt/go-wxbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/xiaobinqt/go-wxbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobinqt%2Fgo-wxbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobinqt%2Fgo-wxbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobinqt%2Fgo-wxbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobinqt%2Fgo-wxbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaobinqt","download_url":"https://codeload.github.com/xiaobinqt/go-wxbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobinqt%2Fgo-wxbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","wechat","wechat-bot"],"created_at":"2026-01-12T07:19:11.838Z","updated_at":"2026-01-12T07:19:13.894Z","avatar_url":"https://github.com/xiaobinqt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go 微信机器人\n\n⚠️本项目只是作者的一个玩具，大部分功能只为个人定制，并不通用。\n\n## 功能演示\n\n[//]: # ([查看 gif 演示]\u0026#40;https://cdn.xiaobinqt.cn/%E6%BC%94%E7%A4%BA.gif\u0026#41;)\n\n\u003cdiv align=\"center\"\u003e\u003ca href=\"https://cdn.xiaobinqt.cn/xiaobinqt.io/20230103/f5978e2b41cb46fd856bb988bc78cfee.jpg?imageView2/0/q/75|watermark/2/text/eGlhb2JpbnF0/font/dmlqYXlh/fontsize/1000/fill/IzVDNUI1Qg==/dissolve/52/gravity/SouthEast/dx/15/dy/15\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.xiaobinqt.cn/xiaobinqt.io/20230103/f5978e2b41cb46fd856bb988bc78cfee.jpg?imageView2/0/q/75|watermark/2/text/eGlhb2JpbnF0/font/dmlqYXlh/fontsize/1000/fill/IzVDNUI1Qg==/dissolve/52/gravity/SouthEast/dx/15/dy/15\" width=  /\u003e\u003c/a\u003e\u003c/div\u003e\n\n## 部署说明\n\nclone 项目到本地，然后进入项目目录，将 `config/dev.yaml` 文件改成 `config/prod.yaml`， yaml 配置文件需要配置下，可以去对应的网站获取 apiKey。\n\n执行如下命令：\n\n\n```shell\ngo mod tidy # 下载依赖\n\ngo build -v -o wxbot  # 编译\n\nnohup ./wxbot \u003e core.log \u0026 # 后台运行, 可以查看日志 core.log\n```\n\n`less core.log` 可以查看日志，日志里有二维码，可以扫码登录。\n\n## 功能列表\n\n### 定时给女朋友推消息\n\n每天早上 9:30 给女朋友推送一条早安消息，每天晚上 23:00 给女朋友推送一条晚安消息。好吧，我要被女朋友锤了:cry:。\n\n### 自定义事件提醒\n\n生活中的很多事情都是通过微信提醒的，比如快递消息等。这个自定义事件消息，可以通过固定规则，让机器人定时给我们发消息提醒我们某事。\n\n比如`+s15:32,消息内容,3,60`就会定时「今天 15:31 提醒我「消息内容」,提醒 3 次每次间隔 60s」\n\n又如`+st20221227 15:35,,消息内容,3,60`会定时「20221227日 15:35 提醒我「消息内容」,提醒 3 次每次间隔 60s」。具体可以参看功能演示部分。\n\n### 定时给群推送消息\n\n**现在只能通过群名获取群信息**，每天定时给群推送上班打卡等消息，比如每天提醒吃饭。\n\n### 根据关键字回复\n\n基于 [天行](https://www.tianapi.com/) api 和 [和风天气](https://console.qweather.com/#/console?lang=zh) 查询接口开发。\n\n比如在群里发送【泾县天气】机器人会回复泾县今日的天气情况。\n\n现在支持的关键字查询如下：\n\n```\n天气查询，如：泾县天气。\n菜谱查询，如: 红烧肉菜谱，红烧肉做法。\n输入【打赏】打赏卫小兵。\n输入【程序员鼓励师】收到程序员鼓励师的回复。\n输入【毒鸡汤】关键字回复毒鸡汤。\n输入【事件提醒】获取设置事件提醒的格式。\n输入【圣诞帽】关键字回复简单处理后的圣诞帽头像，个别用户获取不到头像信息。\n输入【英语一句话】关键字回复一句学习英语。\n```\n\n## 联系方式\n\n![](https://cdn.xiaobinqt.cn/xiaobinqt.io/20220319/d5616bfc809a45608437f9cc94b14044.jpg?imageView2/0/interlace/1/q/50|imageslim)\n\n## 感谢\n\n基于 [openwechat](https://github.com/eatmoreapple/openwechat) 开发，感谢作者。\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaobinqt%2Fgo-wxbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaobinqt%2Fgo-wxbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaobinqt%2Fgo-wxbot/lists"}