{"id":20390266,"url":"https://github.com/nonebot/adapter-mirai","last_synced_at":"2025-04-12T11:21:05.689Z","repository":{"id":103141326,"uuid":"435515600","full_name":"nonebot/adapter-mirai","owner":"nonebot","description":"Mirai Api HTTP adapter for nonebot2","archived":false,"fork":false,"pushed_at":"2024-08-31T14:06:54.000Z","size":114,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T22:01:27.575Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nonebot.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},"funding":{"open_collective":"nonebot","custom":["https://afdian.com/@nonebot"]}},"created_at":"2021-12-06T13:53:08.000Z","updated_at":"2024-08-31T14:04:03.000Z","dependencies_parsed_at":"2024-11-08T00:30:39.264Z","dependency_job_id":"9285703c-6209-49a8-93f9-2f402f64fb03","html_url":"https://github.com/nonebot/adapter-mirai","commit_stats":{"total_commits":12,"total_committers":3,"mean_commits":4.0,"dds":"0.41666666666666663","last_synced_commit":"79bcb3482abee02bcfe93d2e5e2881c0874bf6c4"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonebot%2Fadapter-mirai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonebot%2Fadapter-mirai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonebot%2Fadapter-mirai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonebot%2Fadapter-mirai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nonebot","download_url":"https://codeload.github.com/nonebot/adapter-mirai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247954732,"owners_count":21024274,"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":[],"created_at":"2024-11-15T03:23:55.623Z","updated_at":"2025-04-12T11:21:05.670Z","avatar_url":"https://github.com/nonebot.png","language":"Python","funding_links":["https://opencollective.com/nonebot","https://afdian.com/@nonebot"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nonebot.dev/\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/32db41bc55fa37e0d0085e4fd70e4e74fd34307f6bb4ebdad235bd1b0c8f4126/68747470733a2f2f6e6f6e65626f742e6465762f6c6f676f2e706e67\" width=\"200\" height=\"200\" alt=\"nonebot\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n# NoneBot-Adapter-Mirai\n\n_✨ mirai-api-http v2 协议适配 ✨_\n\n\u003c/div\u003e\n\n\u003e [!NOTE]\n\u003e Mirai 及 mirai-api-http 现处于停滞更新状态\n\u003e \n\u003e 本项目仅为仍然使用 mirai-api-http 的用户提供支持\n\n\n## 配置\n\n修改 NoneBot 配置文件 `.env` 或者 `.env.*`。\n\n### Driver\n\n参考 [driver](https://nonebot.dev/docs/appendices/config#driver) 配置项，添加 `HTTPClient` 和 `WebSocketClient` 支持。\n\n如：\n\n```dotenv\nDRIVER=~httpx+~websockets\n```\n\n或\n\n```dotenv\nDRIVER=~aiohttp\n```\n\n### MIRAI_CLIENTS\n\n配置连接配置，如：\n\n```dotenv\nMIRAI_CLIENTS='\n[\n  {\n    \"host\": \"localhost\",\n    \"port\": \"8080\",\n    \"account\": 1234567890,\n    \"verify_key\": \"xxx\"\n  }\n]\n'\n```\n\n`host` 与 `port` 为 mirai-api-http 服务的监听地址与端口，\n\n`account` 为当前机器人的 QQ 号，\n\n`verify_key` 为 mirai-api-http 的 `verifyKey`。\n\n## 相关项目/鸣谢\n\n- [mirai-api-http](https://github.com/project-mirai/mirai-api-http)\n- [Ariadne](https://github.com/GraiaProject/Ariadne)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnonebot%2Fadapter-mirai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnonebot%2Fadapter-mirai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnonebot%2Fadapter-mirai/lists"}