{"id":22588944,"url":"https://github.com/simple-robot/simpler-robot","last_synced_at":"2026-03-16T16:39:20.442Z","repository":{"id":37006614,"uuid":"278911625","full_name":"simple-robot/simpler-robot","owner":"simple-robot","description":"Simple Robot，一个bot风格的Kotlin多平台事件调度框架，异步高效、Java友好！/ A Bot-style Kotlin Multiplatform event scheduling framework, asynchronous and high-performance, java-friendly! 🐱😼😻😸","archived":false,"fork":false,"pushed_at":"2025-05-11T15:55:39.000Z","size":105056,"stargazers_count":540,"open_issues_count":14,"forks_count":42,"subscribers_count":5,"default_branch":"v4-main","last_synced_at":"2025-05-11T16:39:41.755Z","etag":null,"topics":["bot","bot-framework","java","kook-bot","kotlin","kotlin-coroutines","kotlin-multiplatform","qq-bot","qq-guild-bot","qqbot","simbot","simple-robot","telegram-bot"],"latest_commit_sha":null,"homepage":"https://simbot.forte.love","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":"CHANGELOG.md","contributing":"docs/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"COPYING","code_of_conduct":"CODE_OF_CONDUCT.md","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},"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":"2020-07-11T17:38:54.000Z","updated_at":"2025-05-05T15:02:43.000Z","dependencies_parsed_at":"2024-02-05T21:30:49.825Z","dependency_job_id":"699d3f98-b44e-4811-8962-5274216271ac","html_url":"https://github.com/simple-robot/simpler-robot","commit_stats":null,"previous_names":["fortescarlet/simpler-robot"],"tags_count":212,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-robot%2Fsimpler-robot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-robot%2Fsimpler-robot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-robot%2Fsimpler-robot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-robot%2Fsimpler-robot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simple-robot","download_url":"https://codeload.github.com/simple-robot/simpler-robot/tar.gz/refs/heads/v4-main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292039,"owners_count":22046426,"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","bot-framework","java","kook-bot","kotlin","kotlin-coroutines","kotlin-multiplatform","qq-bot","qq-guild-bot","qqbot","simbot","simple-robot","telegram-bot"],"created_at":"2024-12-08T08:11:39.084Z","updated_at":"2026-03-16T16:39:20.398Z","avatar_url":"https://github.com/simple-robot.png","language":"Kotlin","readme":"\u003c!--suppress HtmlDeprecatedAttribute --\u003e\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://simbot.forte.love/\"\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\u003c/a\u003e\n\u003ch2\u003e\n    - Simple Robot -\n\u003c/h2\u003e\n\u003csmall\u003e\n        ~ simbot v4 ~      \n\u003c/small\u003e\n\u003cbr\u003e\n    \u003cspan\u003e\n        \u003ca href=\"https://github.com/simple-robot/simpler-robot\" target=\"_blank\"\u003eGitHub\u003c/a\u003e\n    \u003c/span\u003e \n    \u0026nbsp;\u0026nbsp; | \u0026nbsp;\u0026nbsp;\n    \u003cspan\u003e\n        \u003ca href=\"https://gitee.com/simple-robot/simpler-robot\" target=\"_blank\"\u003eGitee\u003c/a\u003e\n    \u003c/span\u003e \u003cbr /\u003e\n    \u003csmall\u003e \u0026gt; 感谢 \u003ca href=\"https://github.com/ForteScarlet/CatCode\" target=\"_blank\"\u003eCatCode\u003c/a\u003e 开发团队成员制作的simbot logo \u0026lt; \u003c/small\u003e\n    \u003cbr\u003e\n    \u003csmall\u003e \u0026gt; 走过路过，不要忘记点亮一颗⭐喔~ \u0026lt; \u003c/small\u003e \n    \u003cbr\u003e\n   \u003ca href=\"https://github.com/simple-robot/simpler-robot/releases/latest\"\u003e\u003cimg alt=\"release\" src=\"https://img.shields.io/github/v/release/simple-robot/simpler-robot\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://repo1.maven.org/maven2/love/forte/simbot/simbot-api/\" target=\"_blank\"\u003e\n  \u003cimg alt=\"release\" src=\"https://img.shields.io/maven-central/v/love.forte.simbot/simbot-api\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://simbot.forte.love\" target=\"_blank\"\u003e\n  \u003cimg alt=\"doc\" src=\"https://img.shields.io/badge/doc-simbot-brightgreen\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://qodana.cloud/projects/p9mmM/reports/79Xen\" target=\"_blank\"\u003e\n  \u003cimg alt=\"Qodana\" src=\"https://github.com/simple-robot/simpler-robot/actions/workflows/qodana_code_quality.yml/badge.svg\" /\u003e\u003c/a\u003e\n   \u003chr\u003e\n   \u003cimg alt=\"stars\" src=\"https://img.shields.io/github/stars/simple-robot/simpler-robot\" /\u003e\n   \u003cimg alt=\"forks\" src=\"https://img.shields.io/github/forks/simple-robot/simpler-robot\" /\u003e\n   \u003cimg alt=\"watchers\" src=\"https://img.shields.io/github/watchers/simple-robot/simpler-robot\" /\u003e\n   \u003cimg alt=\"repo-size\" src=\"https://img.shields.io/github/repo-size/simple-robot/simpler-robot\" /\u003e\n   \u003cimg alt=\"code-size\" src=\"https://img.shields.io/github/languages/code-size/simple-robot/simpler-robot\" /\u003e\n   \n   \u003cimg alt=\"issues\" src=\"https://img.shields.io/github/issues-closed/simple-robot/simpler-robot?color=green\" /\u003e\n   \u003cimg alt=\"top-language\" src=\"https://img.shields.io/github/languages/top/simple-robot/simpler-robot\" /\u003e\n\u003ca href=\"./COPYING\"\u003e\u003cimg alt=\"copying\" src=\"https://img.shields.io/github/license/simple-robot/simpler-robot\" /\u003e\u003c/a\u003e\n\n\u003cbr\u003e\n\n\u003c/div\u003e\n\n[English](README_en.md)\n\n## 简介\n\n**`Simple Robot`** (v4) 是一个基于[Kotlin协程](https://github.com/Kotlin/kotlinx.coroutines)\n的[Kotlin多平台](https://kotlinlang.org/docs/multiplatform.html)\n**Bot风格**高性能异步事件调度框架（下文简称simbot），\n异步高效、Java友好~\n\nsimbot提供统一的异步API和易用的风格设计，可以协助你更快速高效的编写**Bot风格**的事件调度应用。\n主要应用于对接各种类型的Bot应用平台/框架，并提供部分组件库实现。\n\nsimbot的**平台功能**由组件驱动，安装不同的组件库来获得不同的功能支持。\n\n举个例子，在simbot中使用KOOK和QQ频道：\n\n```Kotlin\nsuspend fun main() {\n    launchSimpleApplication { config() }\n        .joinWith { module() }\n}\n\nfun ApplicationFactoryConfigurer\u003c*, *, *\u003e.config() {\n    // 安装KOOK和QQ频道组件库\n    useKook()\n    useQQGuild()\n}\n\n/**\n * 对已经构建完成的 `Application` 进行配置于应用\n */\nsuspend fun Application.module() {\n    registerBots()\n    registerListeners()\n}\n\n/**\n * 注册所需的bot\n */\nsuspend fun Application.registerBots() {\n    // ... 注册kook bot，并在此之后可处理到kook的相关事件\n    kookBots {\n        register(...) { ... }.start()\n    }\n\n    // ... 注册QQ频道bot，并在此之后可处理到QQ频道的相关事件\n    qqGuildBots {\n        register(...) { ... }.start()\n    }\n}\n\nfun Application.registerListeners() {\n    listeners {\n        // 注册一个事件处理器\n        // ChatChannelMessageEvent 是由simbot API定义的泛用类型，代表所有子频道消息事件\n        // 其中就包括QQ频道的公域消息事件, 或者KOOK的频道消息事件\n        listen\u003cChatChannelMessageEvent\u003e {\n            println(\"context: $this\")\n            println(\"context.event: $event\")\n\n            // 返回事件处理结果\n            EventResult.empty()\n        }\n\n        // 再注册一个事件处理器\n        // 明确监听QQ频道的公域消息事件\n        // 使用 process 不需要返回值\n        process\u003cQGAtMessageCreateEvent\u003e {\n            println(\"context: $this\")\n            println(\"context.event: $event\")\n        }\n\n        // 再注册一个事件处理器\n        // 明确监听KOOK的频道消息事件\n        // 使用 process 不需要返回值\n        process\u003cKookChannelMessageEvent\u003e {\n            println(\"context: $this\")\n            println(\"context.event: $event\")\n        }\n    }\n}\n```\n\n## 文档与引导\n\n- [组织首页](https://github.com/simple-robot/) 了解更多有关组件、文档、以及社群等相关信息！\n- [社群](https://simbot.forte.love/communities.html) 文档中也有提供社群信息喔\n- [应用手册][doc-homepage]\n- [文档引导站\u0026API文档](https://docs.simbot.forte.love)\n\n## 协助我们\n为我们点亮一个 **✨star🌟** 便是能够给予我们继续走下去的最大动力与支持！\n\n- 阅读 [**贡献指南**](docs/CONTRIBUTING_CN.md) 来了解如何贡献你的力量！ \n- 你可以通过 [**讨论区**][discussions] 与其他人或者simbot开发团队相互友好交流。\n- 如果你通过此项目创建了一个很酷的开源项目，欢迎通过 [ISSUES][issues]、[讨论区][discussions]\n  等方式留下你的开源项目信息，并将你酷酷的项目展示在作品展示区。\n\n## 联系我们\n- 如果想要反馈问题、提出建议建议或提出问题，请通过 [**ISSUES**][issues]。\n- 如果想要与开发团队交流、与其他开发者交流，请前往 [**讨论区**][discussions]。\n- 可以前往 [GitHub 组织首页](https://github.com/simple-robot/) 查看更多**社群信息**。\n\n\n[pr]: https://github.com/simple-robot/simpler-robot/pulls\n[issues]: https://github.com/simple-robot/simpler-robot/issues\n[discussions]: https://github.com/orgs/simple-robot/discussions\n\n\n## 特别鸣谢\n\n\u003ca href=\"https://www.jetbrains.com/?from=simpler-robot\"\u003e\n\u003cimg src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.png\" width=\"200\" alt=\"jetbrains\" /\u003e\n\u003c/a\u003e\n\n感谢 [Jetbrains][jetbrains] 为团队提供的免费授权，也希望大家能够支持 [Jetbrains][jetbrains] 及其产品，支持正版。\n\n[jetbrains]: https://www.jetbrains.com/?from=simpler-robot\n\n## 星星！\n\n[![Star History Chart](https://api.star-history.com/svg?repos=simple-robot/simpler-robot\u0026type=Date)](https://star-history.com/#simple-robot/simpler-robot\u0026Date)\n\n\u003e powered by [Star History](https://star-history.com)\n\n## License\n\nSimple Robot 使用 [LGPLv3](https://www.gnu.org/licenses/#LGPL) 协议开源。\n\n```\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as published by \nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nLesser GNU General Public License for more details.\n\nYou should have received a copy of the Lesser GNU General Public License \nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n\n[doc-homepage]: https://simbot.forte.love/\n","funding_links":["https://github.com/sponsors/ForteScarlet","https://patreon.com/ForteScarlet"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-robot%2Fsimpler-robot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimple-robot%2Fsimpler-robot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-robot%2Fsimpler-robot/lists"}