{"id":25631764,"url":"https://github.com/cnlimiter/onebot-client","last_synced_at":"2025-06-12T15:05:46.303Z","repository":{"id":62160017,"uuid":"544370079","full_name":"cnlimiter/onebot-client","owner":"cnlimiter","description":"基于java开发的onebot协议客户端","archived":false,"fork":false,"pushed_at":"2025-02-12T05:05:41.000Z","size":3810,"stargazers_count":38,"open_issues_count":2,"forks_count":10,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-14T17:11:24.869Z","etag":null,"topics":["cqhttp","go-cqhttp","mirai","onebot","onebot-sdk","qq-robot","qqbot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/cnlimiter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2022-10-02T09:59:17.000Z","updated_at":"2025-04-13T12:06:17.000Z","dependencies_parsed_at":"2024-02-02T06:32:39.229Z","dependency_job_id":"1c402135-5e1d-42cd-a2bc-f1dbc3bc1ebc","html_url":"https://github.com/cnlimiter/onebot-client","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/cnlimiter/onebot-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnlimiter%2Fonebot-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnlimiter%2Fonebot-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnlimiter%2Fonebot-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnlimiter%2Fonebot-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cnlimiter","download_url":"https://codeload.github.com/cnlimiter/onebot-client/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnlimiter%2Fonebot-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259490504,"owners_count":22865762,"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":["cqhttp","go-cqhttp","mirai","onebot","onebot-sdk","qq-robot","qqbot"],"created_at":"2025-02-22T20:30:41.718Z","updated_at":"2025-06-12T15:05:46.258Z","avatar_url":"https://github.com/cnlimiter.png","language":"Java","readme":"\n\u003cdiv align=\"center\"\u003e\n\n# OneBot Client\n\n_✨ 基于java开发的 [OneBot](https://github.com/howmanybots/onebot/blob/master/README.md) 协议客户端✨_\n\n\u003c/div\u003e\n\u003chr\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/cnlimiter/onebot-client/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/cnlimiter/onebot-sdk?style=flat\" alt=\"issues\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://maven.nova-committee.cn/#/releases/cn/evolvefield/oneBotClient/OneBot-Client\"\u003e\u003cimg src=\"https://jitci.com/gh/cnlimiter/onebot-sdk/svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/cnlimiter/onebot-client/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-GPLV3-green\" alt=\"License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/howmanybots/onebot\"\u003e\u003cimg src=\"https://img.shields.io/badge/OneBot-v11-blue?style=flat\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAAIVBMVEUAAAAAAAADAwMHBwceHh4UFBQNDQ0ZGRkoKCgvLy8iIiLWSdWYAAAAAXRSTlMAQObYZgAAAQVJREFUSMftlM0RgjAQhV+0ATYK6i1Xb+iMd0qgBEqgBEuwBOxU2QDKsjvojQPvkJ/ZL5sXkgWrFirK4MibYUdE3OR2nEpuKz1/q8CdNxNQgthZCXYVLjyoDQftaKuniHHWRnPh2GCUetR2/9HsMAXyUT4/3UHwtQT2AggSCGKeSAsFnxBIOuAggdh3AKTL7pDuCyABcMb0aQP7aM4AnAbc/wHwA5D2wDHTTe56gIIOUA/4YYV2e1sg713PXdZJAuncdZMAGkAukU9OAn40O849+0ornPwT93rphWF0mgAbauUrEOthlX8Zu7P5A6kZyKCJy75hhw1Mgr9RAUvX7A3csGqZegEdniCx30c3agAAAABJRU5ErkJggg==\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"#\"\u003e文档\u003c/a\u003e | \n    \u003ca href=\"#\"\u003eQuickStart\u003c/a\u003e\n\u003c/p\u003e\n\n\n# QuickStart\n\n### 使用api进行请求\n```java\npublic class WebSocketClientTest {\n    public static OneBotClient onebot;\n    public static void sendApi(String[] args) {\n        onebot = OneBotClient.create(new BotConfig(\"ws://127.0.0.1:8080\"))//创建websocket客户端\n                .open()//连接onebot服务端\n                .registerEvents(new EventListeners());//注册事件监听器\n\n        onebot.getBot().sendGroupMsg(123456, MsgUtils.builder().text(\"123\").build(), true);//发送群消息\n        GroupMemberInfoResp sender = onebot.getBot().getGroupMemberInfo(123456, 123456, false).getData();//获取响应的群成员信息\n        System.out.println(sender.toString());//打印\n    }\n}\n```\n\n### 事件监听示例\n```java\npublic class EventListeners implements Listener{\n    @SubscribeEvent\n    public void onGroup(GroupMessageEvent event){\n        System.out.println(event);\n    }\n}\n\npublic class WebSocketClientTest {\n    public static OneBotClient onebot;\n    public static void main(String[] args){\n        onebot = OneBotClient.create(new BotConfig(\"ws://127.0.0.1:8080\"))//创建websocket客户端\n                .open()//连接onebot服务端\n                .registerEvents(new EventListeners());//注册事件监听器\n    }\n\n    public static void stopped() {\n        if (onebot != null) onebot.close();\n    }\n}\n```\n\n# Client\n\nOneBot-Client 以 [OneBot-v11](https://github.com/howmanybots/onebot/tree/master/v11/specs) 标准协议进行开发，兼容所有支持正向WebSocket的OneBot协议端\n\n| 项目地址                                                                              | 核心作者           | 备注                                                                    |\n|-----------------------------------------------------------------------------------|----------------|-----------------------------------------------------------------------|\n| [Overflow](https://github.com/MrXiaoM/Overflow)                                   | MrXiaoM        | 实现 mirai 的无缝迁移                                                        |\n| [Lagrange.Core](https://github.com/LagrangeDev/Lagrange.Core)                     | NepPure        | C#实现 By Konata.Core                                                   |\n| [OpenShamrock](https://github.com/whitechi73/OpenShamrock)                        | whitechi73     | Xposed框架hook实现                                                        |\n| [Gensokyo](https://github.com/Hoshinonyaruko/Gensokyo)                            | Hoshinonyaruko | 基于官方api 轻量 原生跨平台                                                      |\n| [LLOnebot](https://github.com/LLOneBot/LLOneBot)                                  | linyuchen      | 使用[LiteLoaderQQNT](https://github.com/LiteLoaderQQNT/LiteLoaderQQNT)  |\n\n# Credits\n\n* [OneBot](https://github.com/botuniverse/onebot)\n\n# License\n\nThis product is licensed under the GNU General Public License version 3. The license is as published by the Free\nSoftware Foundation published at https://www.gnu.org/licenses/gpl-3.0.html.\n\nAlternatively, this product is licensed under the GNU Lesser General Public License version 3 for non-commercial use.\nThe license is as published by the Free Software Foundation published at https://www.gnu.org/licenses/lgpl-3.0.html.\n\nFeel free to contact us if you have any questions about licensing or want to use the library in a commercial closed\nsource product.\n\n# Thanks\n\nThanks [JetBrains](https://www.jetbrains.com/?from=onebot-client) Provide Free License Support OpenSource Project\n\n[\u003cimg src=\"https://mikuac.com/images/jetbrains-variant-3.png\" width=\"200\"/\u003e](https://www.jetbrains.com/?from=onebot-client)\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/cnlimiter/onebot-client.svg)](https://starchart.cc/cnlimiter/onebot-client)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnlimiter%2Fonebot-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnlimiter%2Fonebot-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnlimiter%2Fonebot-client/lists"}