{"id":20640313,"url":"https://github.com/aflybird0/bird_qq_bot","last_synced_at":"2025-06-20T01:04:58.016Z","repository":{"id":38309327,"uuid":"442681322","full_name":"aFlyBird0/bird_qq_bot","owner":"aFlyBird0","description":"一个 QQ 机器人，目前有 复读撤回、情话、外卖 roll 点、随机@等功能","archived":false,"fork":false,"pushed_at":"2023-02-28T05:56:48.000Z","size":1550,"stargazers_count":10,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T01:04:29.165Z","etag":null,"topics":["bot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aFlyBird0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-29T06:28:24.000Z","updated_at":"2024-07-10T08:02:29.000Z","dependencies_parsed_at":"2024-06-19T19:06:59.535Z","dependency_job_id":"0a413aec-e826-4533-85a0-c74986f93b99","html_url":"https://github.com/aFlyBird0/bird_qq_bot","commit_stats":{"total_commits":50,"total_committers":2,"mean_commits":25.0,"dds":"0.020000000000000018","last_synced_commit":"b36ba0e21f75bebd34249f7e6561b2597c7266d1"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/aFlyBird0/bird_qq_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aFlyBird0%2Fbird_qq_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aFlyBird0%2Fbird_qq_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aFlyBird0%2Fbird_qq_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aFlyBird0%2Fbird_qq_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aFlyBird0","download_url":"https://codeload.github.com/aFlyBird0/bird_qq_bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aFlyBird0%2Fbird_qq_bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260857364,"owners_count":23073435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bot"],"created_at":"2024-11-16T15:28:53.107Z","updated_at":"2025-06-20T01:04:53.002Z","avatar_url":"https://github.com/aFlyBird0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bird_qq_bot\r\n\r\n因群里复读怪太多，突发奇想速冲的一个 QQ 机器人。 \r\n\r\n项目基于 [Logiase/MiraiGo-Template: A template for MiraiGo](https://github.com/Logiase/MiraiGo-Template) 二次开发。\r\n\r\n## 快速开始\r\n\r\n1. 下载\r\n去 [release页](https://github.com/aFlyBird0/bird_qq_bot/releases) 下载对应的二进制文件(bird_qq_bot开头)，和配置文件 application.example.yaml，并重命名为 `application.yaml`，\r\n\r\n2. 修改配置\r\n修改配置文件，其中最前面的 `bot` 部分是机器人的配置，有两种登录方式：\r\n\r\n   1. 扫码登录，`bot.login-method` 填 `qrcode`。然后程序会在启动时，同时在终端中打印出二维码与在当前目录生成 `qrcode.png` 文件，用手机扫码登录即可。\r\n   2. 账号密码登录，`bot.login-method` 填 `common`，并填写 `bot.account` 和 `bot.password`。\r\n\r\n注：很可能会触发QQ风控，比如密码登录会提示需要滑块验证，这时候就会自动转成扫码登录，同时扫码登录要求扫码的手机和运行QQ机器人的服务器在同一网络环境在。\r\n\r\n3. 运行\r\n直接运行二进制文件即可。\r\n\r\n## 现有功能\r\n### 群复读撤回\r\n检测群消息是否和最近 10 条内重复（可设定次数），若有，撤回。\r\n\r\n### 外卖 roll 点\r\n群内发送「外卖」，即可获得一个随机数，范围为 1-100。寝室拿外卖神器。  \r\n\r\n### 考研分数段统计\r\n根据群名片统计各分数段人数，支持多群统计、自定义规则（需要简单改代码）。\r\n\r\n统计结果展示方式：\r\n* 图片：把统计结果转成图片后发到群里\r\n* 文字（webserver）\r\n  * localServer：在部署机器人的服务器上启动一个 web 服务，把统计结果以网址的形式发到群里\r\n  * remoteServer：把统计信息推送到远程服务器上（见Remote-Webserver 部署），把统计结果以网址的形式发到群里\r\n\r\n详细配置见配置文件。\r\n\r\n#### Remote-Webserver 部署（可选）\r\n\r\n为什么需要 remoteServer？因为 localServer 运行在部署机器人的服务器上，如果机器人部署在内网，而统计结果肯定是需要做到外网访问，但如果部署机器人的网络环境又不允许使用内网穿透，就需要 remoteServer。\r\n\r\n去 [release页](https://github.com/aFlyBird0/bird_qq_bot/releases) 下载对应的二进制文件(webserver开头)，运行：\r\n\r\n```shell\r\n# 为了演示方便，这里将二进制重命名为webserver\r\n./webserver -port 8090\r\n```\r\n\r\n### 土味情话\r\n群内发送「宝贝」，即可获得一个随机土味情话。单身狗过节神器。\r\n\r\n### 随机@\r\n群内发送「开枪」，随机@一位幸运儿。\r\n\r\n### 天行API\r\n需要申请[天行api](https://www.tianapi.com/apiview/142), 模块默认未开启。\r\n群内发送指令，即可被@回复消息  \r\n以下是支持的指令：\r\n* 「早安」\r\n* 「晚安」\r\n* 「舔狗日记」\r\n* 「健康小贴士」\r\n\r\n## 未来计划\r\n\r\n1. 更多功能\r\n2. CI/CD\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faflybird0%2Fbird_qq_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faflybird0%2Fbird_qq_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faflybird0%2Fbird_qq_bot/lists"}