{"id":30778097,"url":"https://github.com/ehforwarderbot/efb-qq-plugin-go-cqhttp","last_synced_at":"2025-09-05T05:52:18.444Z","repository":{"id":38463438,"uuid":"372358740","full_name":"ehForwarderBot/efb-qq-plugin-go-cqhttp","owner":"ehForwarderBot","description":"Go-cqhttp Plugin for EFB QQ Slave.","archived":false,"fork":false,"pushed_at":"2024-01-09T05:05:00.000Z","size":210,"stargazers_count":32,"open_issues_count":4,"forks_count":19,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T03:03:07.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/ehForwarderBot.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2021-05-31T02:15:35.000Z","updated_at":"2025-08-29T06:08:51.000Z","dependencies_parsed_at":"2023-02-09T15:01:30.780Z","dependency_job_id":"aad77751-e58e-418b-b76c-3fed9ac9fea8","html_url":"https://github.com/ehForwarderBot/efb-qq-plugin-go-cqhttp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ehForwarderBot/efb-qq-plugin-go-cqhttp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-qq-plugin-go-cqhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-qq-plugin-go-cqhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-qq-plugin-go-cqhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-qq-plugin-go-cqhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehForwarderBot","download_url":"https://codeload.github.com/ehForwarderBot/efb-qq-plugin-go-cqhttp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-qq-plugin-go-cqhttp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273718350,"owners_count":25155488,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-05T05:52:03.517Z","updated_at":"2025-09-05T05:52:18.424Z","avatar_url":"https://github.com/ehForwarderBot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"efb-qq-plugin-go-cqhttp\n=======================\n\nefb-qq-plugin-go-cqhttp 是 efb-qq-slave 的插件，需要配合 efb-qq-slave 使用，使用前请先阅读 `efb-qq-slave \u003chttps://github.com/milkice233/efb-qq-slave\u003e`__ 的文档。\n\n下面的教程展示了当 go-cqhttp 和 ehForwarderBot 在同一台机器上运行时如何设置两端。\n\n（高级） 对于其他的情况，例如 go-cqhttp 和 ehForwarderBot 在不同的机器上运行时， ``go-cqhttp port url`` 和 ``go-cqhttp api url`` 必须修改为相应的值（前者是 efb-qq-slave 监听的地址/端口，后者是 go-cqhttp 监听的地址/端口），同时防火墙应允许双方的数据包通过，以便双方的请求不会被防火墙拦截。如果双方通信内容必须经过 Internet 传输，请确保已配置 ``Access Token`` 并启用 ``HTTPS`` 确保双方通信内容不会在公网被窃听/篡改。\n\n有关 go-cqhttp 的详细信息，请访问 `go-cqhttp 文档 \u003chttps://docs.go-cqhttp.org\u003e`__。\n\n配置 go-cqhttp\n--------------\n\n1. `下载 go-cqhttp \u003chttps://docs.go-cqhttp.org/guide/quick_start.html\u003e`__\n\n2. 编辑 ``config.yaml`` 配置文件，注意修改如下部分\n\n   .. code:: yaml\n\n      account:         # 账号相关\n        uin: 000000000 # QQ 账号\n        password: ''   # QQ 密码，为空时使用扫码登录\n\n      message:\n        # 上报数据类型\n        # efb-qq-plugin-go-cqhttp 仅支持 array 类型\n        post-format: array\n        # 为Reply附加更多信息\n        extra-reply-data: true\n\n\n      # 默认中间件锚点\n      default-middlewares: \u0026default\n        # 访问密钥，强烈推荐在公网的服务器设置\n        access-token: ''\n\n      servers:\n        # HTTP 通信设置\n        - http:\n            # HTTP监听地址\n            address: 127.0.0.1:5700\n            # 反向 HTTP 超时时间, 单位秒\n            # 最小值为 5，小于 5 将会忽略本项设置\n            timeout: 5\n            middlewares:\n              \u003c\u003c: *default # 引用默认中间件\n            # 反向 HTTP POST 地址列表\n            post:\n              - url: 'http://127.0.0.1:8000' # 地址\n                secret: ''                   # 密钥保持为空\n\n3. 运行 go-cqhttp ``./go-cqhttp``\n\n配置 efb-qq-slave 端\n--------------------\n\n1. 安装 efb-qq-plugin-go-cqhttp ``pip install git+https://github.com/XYenon/efb-qq-plugin-go-cqhttp``\n\n2. 为 ``milkice.qq`` 从端创建 ``config.yaml`` 配置文件\n\n   配置文件通常位于 ``~/.ehforwarderbot/profiles/default/milkice.qq/config.yaml``\n\n   样例配置文件如下:\n\n   .. code:: yaml\n\n       Client: GoCQHttp                      # 指定要使用的 QQ 客户端（此处为 GoCQHttp）\n       GoCQHttp:\n           type: HTTP                        # 指定 efb-qq-plugin-go-cqhttp 与 GoCQHttp 通信的方式 现阶段仅支持 HTTP\n           access_token:\n           api_root: http://127.0.0.1:5700/  # GoCQHttp API接口地址/端口\n           api_timeout: 60                   # GoCQHttp API接口超时时间\n           host: 127.0.0.1                   # efb-qq-slave 所监听的地址用于接收消息\n           port: 8000                        # 同上\n\n3. 启动 ``ehforwarderbot``，大功告成！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehforwarderbot%2Fefb-qq-plugin-go-cqhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehforwarderbot%2Fefb-qq-plugin-go-cqhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehforwarderbot%2Fefb-qq-plugin-go-cqhttp/lists"}