{"id":22588918,"url":"https://github.com/simple-robot/simbot-component-onebot","last_synced_at":"2025-04-10T21:45:38.685Z","repository":{"id":235764364,"uuid":"775376148","full_name":"simple-robot/simbot-component-onebot","owner":"simple-robot","description":"一个Kotlin多平台的 OneBot SDK 实现，一个异步高效、Java 友好的 Simple Robot 组件库 ~ 🐱🐱🐱","archived":false,"fork":false,"pushed_at":"2025-04-10T06:55:45.000Z","size":1377,"stargazers_count":12,"open_issues_count":13,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T21:45:25.267Z","etag":null,"topics":["kotlin","kotlin-coroutines","kotlin-multiplatform","kotlin-multiplatform-library","onebot","onebot-sdk","onebot11","simbot","simbot-component"],"latest_commit_sha":null,"homepage":"https://simbot.forte.love/component-onebot.html","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simple-robot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","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":{"github":"ForteScarlet","patreon":"ForteScarlet","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-03-21T09:22:00.000Z","updated_at":"2025-03-23T15:07:03.000Z","dependencies_parsed_at":"2024-08-09T10:44:44.817Z","dependency_job_id":"da2309fb-3b21-496e-8385-0bc7d6718107","html_url":"https://github.com/simple-robot/simbot-component-onebot","commit_stats":null,"previous_names":["simple-robot/simbot-component-onebot"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-robot%2Fsimbot-component-onebot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-robot%2Fsimbot-component-onebot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-robot%2Fsimbot-component-onebot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-robot%2Fsimbot-component-onebot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simple-robot","download_url":"https://codeload.github.com/simple-robot/simbot-component-onebot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248305879,"owners_count":21081562,"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":["kotlin","kotlin-coroutines","kotlin-multiplatform","kotlin-multiplatform-library","onebot","onebot-sdk","onebot11","simbot","simbot-component"],"created_at":"2024-12-08T08:11:33.804Z","updated_at":"2025-04-10T21:45:38.668Z","avatar_url":"https://github.com/simple-robot.png","language":"Kotlin","funding_links":["https://github.com/sponsors/ForteScarlet","https://patreon.com/ForteScarlet"],"categories":[],"sub_categories":[],"readme":"\u003c!--suppress HtmlDeprecatedAttribute --\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\".simbot/logo-dark.svg\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\".simbot/logo.svg\"\u003e\n  \u003cimg alt=\"simbot logo\" src=\".simbot/logo.svg\" width=\"260\" /\u003e\n\u003c/picture\u003e\n\u003ch2\u003e\n    ~ Simple Robot ~ \u003cbr/\u003e \u003csmall\u003eOneBot Component\u003c/small\u003e\n\u003c/h2\u003e\n\u003ca href=\"https://github.com/simple-robot/simbot-component-onebot/releases/latest\"\u003e\u003cimg alt=\"release\" src=\"https://img.shields.io/github/v/release/simple-robot/simbot-component-onebot\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://repo1.maven.org/maven2/love/forte/simbot/component/simbot-component-onebot-common/\" target=\"_blank\"\u003e\n  \u003cimg alt=\"release\" src=\"https://img.shields.io/maven-central/v/love.forte.simbot.component/simbot-component-onebot-common\" /\u003e\u003c/a\u003e\n   \u003chr\u003e\n\u003cp\u003e\n   \u003cimg alt=\"stars\" src=\"https://img.shields.io/github/stars/simple-robot/simbot-component-onebot\" /\u003e\n   \u003cimg alt=\"forks\" src=\"https://img.shields.io/github/forks/simple-robot/simbot-component-onebot\" /\u003e\n   \u003cimg alt=\"watchers\" src=\"https://img.shields.io/github/watchers/simple-robot/simbot-component-onebot\" /\u003e\n   \u003cimg alt=\"repo size\" src=\"https://img.shields.io/github/repo-size/simple-robot/simbot-component-onebot\" /\u003e\n   \u003cimg alt=\"issues\" src=\"https://img.shields.io/github/issues-closed/simple-robot/simbot-component-onebot?color=green\" /\u003e\n   \u003cimg alt=\"last commit\" src=\"https://img.shields.io/github/last-commit/simple-robot/simbot-component-onebot\" /\u003e\n   \u003ca href=\"./COPYING\"\u003e\u003cimg alt=\"copying\" src=\"https://img.shields.io/github/license/simple-robot/simbot-component-onebot\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\n\u003cimg src=\"https://img.shields.io/badge/OneBot-11-black?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF////29vbr6+vAAAAk1hCcwAAAAR0Uk5T////AEAqqfQAAAKcSURBVHja7NrbctswDATQXfD//zlpO7FlmwAWIOnOtNaTM5JwDMa8E+PNFz7g3waJ24fviyDPgfhz8fHP39cBcBL9KoJbQUxjA2iYqHL3FAnvzhL4GtVNUcoSZe6eSHizBcK5LL7dBr2AUZlev1ARRHCljzRALIEog6H3U6bCIyqIZdAT0eBuJYaGiJaHSjmkYIZd+qSGWAQnIaz2OArVnX6vrItQvbhZJtVGB5qX9wKqCMkb9W7aexfCO/rwQRBzsDIsYx4AOz0nhAtWu7bqkEQBO0Pr+Ftjt5fFCUEbm0Sbgdu8WSgJ5NgH2iu46R/o1UcBXJsFusWF/QUaz3RwJMEgngfaGGdSxJkE/Yg4lOBryBiMwvAhZrVMUUvwqU7F05b5WLaUIN4M4hRocQQRnEedgsn7TZB3UCpRrIJwQfqvGwsg18EnI2uSVNC8t+0QmMXogvbPg/xk+Mnw/6kW/rraUlvqgmFreAA09xW5t0AFlHrQZ3CsgvZm0FbHNKyBmheBKIF2cCA8A600aHPmFtRB1XvMsJAiza7LpPog0UJwccKdzw8rdf8MyN2ePYF896LC5hTzdZqxb6VNXInaupARLDNBWgI8spq4T0Qb5H4vWfPmHo8OyB1ito+AysNNz0oglj1U955sjUN9d41LnrX2D/u7eRwxyOaOpfyevCWbTgDEoilsOnu7zsKhjRCsnD/QzhdkYLBLXjiK4f3UWmcx2M7PO21CKVTH84638NTplt6JIQH0ZwCNuiWAfvuLhdrcOYPVO9eW3A67l7hZtgaY9GZo9AFc6cryjoeFBIWeU+npnk/nLE0OxCHL1eQsc1IciehjpJv5mqCsjeopaH6r15/MrxNnVhu7tmcslay2gO2Z1QfcfX0JMACG41/u0RrI9QAAAABJRU5ErkJggg==\" /\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\nSimple Robot OneBot 组件是一个\n[OneBot11](https://github.com/botuniverse/onebot-11)\n协议的客户端SDK，是基于\n[Simple Robot](http://github.com/simple-robot/simpler-robot) 标准API实现的组件库，\n提供simbot中的各项能力。\n\n它是一个 \n[Kotlin 多平台](https://kotlinlang.org/docs/multiplatform.html) \n库，Java 友好、异步高效！\n\n借助simbot核心库提供的能力，它可以支持很多高级功能和封装，比如组件协同、Spring支持等，\n祝你快速开发 OneBot 客户端应用！\n\n序列化和网络请求相关分别基于 [Kotlin serialization](https://github.com/Kotlin/kotlinx.serialization)\n和 [Ktor](https://ktor.io/)。\n\n## 文档与引导\n\n- 手册：[Simple Robot 应用手册](https://simbot.forte.love) \n  与手册内的 [OneBot组件](https://simbot.forte.love/component-onebot.html) 部分。\n- [文档引导站 \u0026 API文档](https://docs.simbot.forte.love)\n- [**社群**](https://simbot.forte.love/communities.html) (文档中也有提供社群信息喔~)\n- [组织库首页](https://github.com/simple-robot/): 了解更多有关组件、文档、以及社群等相关信息！\n\n---\n\n我们欢迎并期望着您的\n[反馈](https://github.com/simple-robot/simbot-component-onebot/issues)\n或\n[协助](https://github.com/simple-robot/simbot-component-onebot/pulls)，\n感谢您的贡献与支持！\n\n## 快速开始\n\n前往手册 [OneBot组件部分](https://simbot.forte.love/component-onebot.html) 了解更多、\n参考其中的[开始使用OneBot11](https://simbot.forte.love/component-onebot-v11-start-using.html)。\n\n\n## 事件关系\n\n简单列举一下原始事件与可能对应的组件事件之间的关系。\n\n| 原始事件类型                                              | 组件事件                                   |\n|-----------------------------------------------------|----------------------------------------|\n| `RawMetaEvent`                                      | `OneBotMetaEvent`                      |\n| \u003e `RawLifecycleEvent`                               | \u003e `OneBotLifecycleEvent`               |\n| \u003e `RawHeartbeatEvent`                               | \u003e `OneBotHeartbeatEvent`               |\n| `RawMessageEvent`                                   | `OneBotMessageEvent`                   |\n| \u003e `RawGroupMessageEvent`                            | \u003e `OneBotGroupMessageEvent`            |\n| \u003e `RawGroupMessageEvent`                            | \u003e \u003e `OneBotNormalGroupMessageEvent`    |\n| \u003e `RawGroupMessageEvent`                            | \u003e \u003e `OneBotAnonymousGroupMessageEvent` |\n| \u003e `RawGroupMessageEvent`                            | \u003e \u003e `OneBotNoticeGroupMessageEvent`    |\n| \u003e `RawPrivateMessageEvent`                          | \u003e `OneBotPrivateMessageEvent`          |\n| \u003e `RawPrivateMessageEvent`                          | \u003e \u003e `OneBotFriendMessageEvent`         |\n| \u003e `RawPrivateMessageEvent`                          | \u003e \u003e `OneBotGroupPrivateMessageEvent`   |\n| `RawRequestEvent`                                   | `OneBotRequestEvent`                   |\n| \u003e `RawFriendRequestEvent`                           | \u003e `OneBotFriendRequestEvent`           |\n| \u003e `RawGroupRequestEvent`                            | \u003e `OneBotGroupRequestEvent`            |\n| `RawNoticeEvent`                                    | `OneBotNoticeEvent`                    |\n| \u003e `RawFriendAddEvent`                               | \u003e `OneBotFriendAddEvent`               |\n| \u003e `RawFriendRecallEvent`                            | \u003e `OneBotFriendRecallEvent`            |\n| \u003e `RawGroupAdminEvent`                              | \u003e `OneBotGroupAdminEvent`              |\n| \u003e `RawGroupBanEvent`                                | \u003e `OneBotGroupBanEvent`                |\n| \u003e `RawGroupIncreaseEvent` 或 `RawGroupDecreaseEvent` | \u003e `OneBotGroupChangeEvent`             |\n| \u003e `RawGroupIncreaseEvent`                           | \u003e \u003e `OneBotGroupMemberIncreaseEvent`   |\n| \u003e `RawGroupDecreaseEvent`                           | \u003e \u003e `OneBotGroupMemberDecreaseEvent`   |\n| \u003e `RawGroupRecallEvent`                             | \u003e `OneBotGroupRecallEvent`             |\n| \u003e `RawGroupUploadEvent`                             | \u003e `OneBotGroupUploadEvent`             |\n| \u003e `RawNotifyEvent`                                  | \u003e `OneBotNotifyEvent`                  |\n| \u003e `RawNotifyEvent`                                  | \u003e \u003e `OneBotHonorEvent`                 |\n| \u003e `RawNotifyEvent`                                  | \u003e \u003e `OneBotLuckyKingEvent`             |\n| \u003e `RawNotifyEvent`                                  | \u003e \u003e `OneBotPokeEvent`                  |\n| \u003e `RawNotifyEvent`                                  | \u003e \u003e \u003e `OneBotMemberPokeEvent`          |\n| \u003e `RawNotifyEvent`                                  | \u003e \u003e \u003e `OneBotBotSelfPokeEvent`         |\n| `UnknownEvent`                                      | \u003e `UnknownEvent`                       |\n| 无                                                   | `OneBotBotStageEvent`                  |\n| 无                                                   | \u003e `OneBotBotRegisteredEvent`           |\n| 无                                                   | \u003e `OneBotBotStartedEvent`              |\n| 任意未支持事件                                             | `OneBotUnsupportedEvent`               |\n\n其中，可以通过 `OneBotUnsupportedEvent` 和 `OneBotUnknownEvent`\n来间接地监听那些尚未提供组件事件类型的原始事件。\n\n## License\n\n```\nThis program is free software: you can redistribute it and/or \nmodify it under the terms of the GNU Lesser General \nPublic License as published by the Free Software Foundation, \neither version 3 of the License, or (at your option) \nany later version.\n\nThis program is distributed in the hope that it will be useful, \nbut WITHOUT ANY WARRANTY; without even the implied \nwarranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \nSee the GNU Lesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public \nLicense along with this program. \nIf not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-robot%2Fsimbot-component-onebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimple-robot%2Fsimbot-component-onebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-robot%2Fsimbot-component-onebot/lists"}