{"id":38734069,"url":"https://github.com/ghaoo/rboot","last_synced_at":"2026-01-17T11:29:02.840Z","repository":{"id":57504337,"uuid":"130175841","full_name":"ghaoo/rboot","owner":"ghaoo","description":"Rboot 是一个Go语言开发的一个简单、高效的 Chatops bot 框架","archived":false,"fork":false,"pushed_at":"2022-06-13T06:46:52.000Z","size":407,"stargazers_count":66,"open_issues_count":1,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T23:39:36.788Z","etag":null,"topics":["bot","chatbot","chatops","chatops-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghaoo.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}},"created_at":"2018-04-19T07:28:36.000Z","updated_at":"2025-01-03T21:47:03.000Z","dependencies_parsed_at":"2022-08-30T01:31:41.855Z","dependency_job_id":null,"html_url":"https://github.com/ghaoo/rboot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ghaoo/rboot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaoo%2Frboot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaoo%2Frboot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaoo%2Frboot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaoo%2Frboot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghaoo","download_url":"https://codeload.github.com/ghaoo/rboot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghaoo%2Frboot/sbom","scorecard":{"id":425553,"data":{"date":"2025-08-11","repo":{"name":"github.com/ghaoo/rboot","commit":"ba6e08157081e3342ccdca3031ccaf3d277e9f27"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T02:09:46.914Z","repository_id":57504337,"created_at":"2025-08-19T02:09:46.914Z","updated_at":"2025-08-19T02:09:46.914Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28507593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T10:25:30.148Z","status":"ssl_error","status_checked_at":"2026-01-17T10:25:29.718Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bot","chatbot","chatops","chatops-bot"],"created_at":"2026-01-17T11:29:02.751Z","updated_at":"2026-01-17T11:29:02.830Z","avatar_url":"https://github.com/ghaoo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Rboot \n\n[![Build Status](https://app.travis-ci.com/ghaoo/rboot.svg?branch=master)](https://app.travis-ci.com/ghaoo/rboot) [![Go Report Card](https://goreportcard.com/badge/github.com/ghaoo/rboot)](https://goreportcard.com/report/github.com/ghaoo/rboot) [![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/ghaoo/rboot?color=%2B\u0026style=flat-square)](https://golang.org/) [![GoDoc](http://godoc.org/github.com/ghaoo/rboot?status.svg)](http://godoc.org/github.com/ghaoo/rboot)\n\n\n`rboot` 是一个使用 `golang` 写的，简单、高效的聊天机器人框架，易于扩展，它可以工作在不同的聊天服务上，并通过扩展脚本可实现 `聊天`、`工作助手`、`服务监控`、`警报触发` 等功能。\n\n## golang版本需求\n\ngolang `v1.13+`\n\n## 快速创建自己的机器人\n\n```shell script\n$ go get github.com/ghaoo/rboot\n$ cd $GOPATH/github.com/ghaoo/rboot/robot\n$ go build\n$ ./robot\n```\n\n## 关于消息转接器\n\n消息转接器是用来监听消息的传入和传出，通过消息转接器可以将聊天客户端的消息发送到机器人，经过脚本处理后返回消息发送给客户端。\n\n`rboot` 提供了 `命令行cli` `微信网页版` `企业微信` `钉钉` `倍洽` 聊天转接器的简单实现。\n\n## 关于插件\n\n`Plugin` 并没有提供太多开箱即用的插件，除了一个`help`插件，其他的需要开发者根据自己的需求去开发。\n\n**help插件用法**：\n\n`!help \u003cplugin\u003e`：查看插件帮助信息，当命令不带插件名称时会列出所有插件帮助信息，带插件名称只列出此插件的帮助信息。\n\n### 使用golang编写插件\n\n\u003e 在文件夹 `robot/plugins` 下有简单的插件案例，开发者可查看插件编写方法。\n\n### 使用其他语言编写插件\n\n`Plugin` 不仅可以使用golang编写插件，也可以使用脚本插件来执行系统命令或使用脚本语言编写的插件文件。\n\n脚本插件是用来解析脚本语言的`Plugin`插件，它是rboot插件的一个扩展。通过`yaml`配置文件来执行系统命令或脚本。\n\n\u003e 因为脚本插件是建立在`Plugin`基础之上的，每个脚本都会被注册到`Plugin`之中，所以确保插件之间名称不要重叠，否则可能先注册的插件会被后注册的插件替换！\n\n#### 如何编写脚本插件\n\n##### 配置\n\n- `PLUGIN_DIR`：脚本插件配置文件存放的文件夹，若不配置默认为`scripts`\n\n##### 快速开始\n\n我们可以通过创建一个`yaml`文件来创建一个脚本插件，通过文件中的配置选项来实现对脚本插件的配置。比如我们创建一个 `hello.yml` 文件，它的内容如下：\n\n```yaml\nname: hello\nversion: 0.1.0\nruleset:\n    hello: \"^hello\"\nusage:\n    hi: echo hello world and 你好\ndescription: 脚本插件示例\ncommand:\n    -\n        cmd:\n            - echo hi\n            - echo hello world\n    -\n        dir: plugins\n        cmd:\n            - echo 你好\n```\n\n这个插件使用的是系统命令 `echo`。它的意思是：当我们输入“hello”后，脚本会返回 `hi`，`hello world` 和 `你好` 三条信息。\n\n配置中各个字段的含义：\n\n配置|必须|意义\n---|:---:|:---:\nname|是|插件名称 \nruleset|是|规则集合\nversion|否|插件版本\nusage|否|插件用法\ndescription|否|插件简介\ncommand|是|插件命令集\n---|---|---\ndir|否|命令执行文件夹\ncmd|是|插件命令\n\n\u003e `command`可配置多个命令集，执行顺序为从上到下依次执行\n\u003e\n\u003e `cmd`可配置多条命令，执行顺序为从上到下依次执行\n\n脚本插件支持`系统命令`和`脚本语言`。系统命令模式如上面的`hello.yml`，只需在文件中填写文件夹和系统命令，当你发出命令后，机器人就会从上到下依次执行。\n\n脚本语言是建立在系统命令模式之上的执行方式，我们可以使用系统命令调用语言脚本，从而执行比较复杂的脚本。比如我们使用python输出“hello robot”。\n\n我们的python脚本如下：\n\n```python\n#!/usr/bin/env python\n\nprint(\"Hello, robot! i am a python script\")\n```\n\n我们的配置文件如下：\n\n```yaml\nname: pyscript\nversion: 0.1.0\nruleset:\n    py: \"^hello python\"\nusage:\n    py: execute python script\ndescription: python插件示例\ncommand:\n        dir: script\n        cmd:\n            - ./hello.py\n```\n\n当我们输入 `hello python` 时，机器人会调用 `hello.py` 脚本，脚本输出\"Hello, robot! i am a python script\"并通过机器人展示给我们。\n\n\u003e 在不同操作系统下请确认 `目录分隔符` 是否符合当前系统设置。\n\u003e `windows` 下请使用 `\\`\n\u003e `unix` 下请使用 `/`\n\n## 文档\n\n[![Rboot](https://img.shields.io/badge/%E4%B8%AD%E6%96%87%E6%96%87%E6%A1%A3-rboot1.2.0-green)](https://www.kancloud.cn/ghaoo/rboot/1476883)\n\n[![GoDoc](http://godoc.org/github.com/ghaoo/rboot?status.svg)](http://godoc.org/github.com/ghaoo/rboot)\n\n### 版权\n\n本项目采用 [MIT](https://opensource.org/licenses/MIT) 开源授权许可证，完整的授权说明可在 [LICENSE](LICENSE) 文件中找到。\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghaoo%2Frboot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghaoo%2Frboot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghaoo%2Frboot/lists"}