{"id":41116925,"url":"https://github.com/opq-osc/botoy","last_synced_at":"2026-01-22T16:54:04.716Z","repository":{"id":39656762,"uuid":"301613776","full_name":"opq-osc/botoy","owner":"opq-osc","description":"OPQ/IOTQQ/IOTBot的一个Python开发助手🐌","archived":false,"fork":false,"pushed_at":"2024-08-12T12:12:47.000Z","size":737,"stargazers_count":68,"open_issues_count":5,"forks_count":18,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-14T12:10:26.445Z","etag":null,"topics":["iotbot","iotqq","opq","opq-plugin","opqbot","opqbot-plugin"],"latest_commit_sha":null,"homepage":"https://botoy.opqbot.com","language":"Python","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/opq-osc.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-06T04:30:29.000Z","updated_at":"2025-05-03T15:57:49.000Z","dependencies_parsed_at":"2024-03-23T08:32:55.273Z","dependency_job_id":"e5d2307d-9ed0-4f36-97ea-8538d669fb34","html_url":"https://github.com/opq-osc/botoy","commit_stats":{"total_commits":426,"total_committers":14,"mean_commits":"30.428571428571427","dds":"0.12676056338028174","last_synced_commit":"5e0dc7050ad12e9a5127fdd44265adba38bda856"},"previous_names":["xiyaowong/botoy"],"tags_count":92,"template":false,"template_full_name":null,"purl":"pkg:github/opq-osc/botoy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opq-osc%2Fbotoy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opq-osc%2Fbotoy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opq-osc%2Fbotoy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opq-osc%2Fbotoy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opq-osc","download_url":"https://codeload.github.com/opq-osc/botoy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opq-osc%2Fbotoy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28667038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T14:01:31.714Z","status":"ssl_error","status_checked_at":"2026-01-22T13:59:23.143Z","response_time":144,"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":["iotbot","iotqq","opq","opq-plugin","opqbot","opqbot-plugin"],"created_at":"2026-01-22T16:54:02.995Z","updated_at":"2026-01-22T16:54:04.707Z","avatar_url":"https://github.com/opq-osc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# botoy\n\n[![QQ Group](https://img.shields.io/badge/QQ%E7%BE%A4-856337734-important?style=flat-square\u0026logo=tencentqq)](https://jq.qq.com/?_wv=1027\u0026k=K8iQy7i7)\n\n[![pypi](https://img.shields.io/pypi/v/botoy?style=flat-square 'pypi')](https://pypi.org/project/botoy/)\n[![python](https://img.shields.io/badge/python-3.8+-blue 'python')](https://pypi.org/project/botoy/)\n[![Lines of code](https://img.shields.io/tokei/lines/github/opq-osc/botoy?label=lines\u0026style=flat-square)](https://github.com/opq-osc/botoy)\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/opq-osc/botoy?style=flat-square)](https://github.com/opq-osc/botoy)\n[![LICENSE](https://img.shields.io/github/license/opq-osc/botoy?style=flat-square)](https://github.com/opq-osc/botoy/blob/main/LICENSE)\n\n对机器人框架[OPQ](https://github.com/OPQBOT/OPQ/)接口的 Python 封装,\n因为功能模块耦合度低, 所以你可以完全使用该框架开发，也可以选取需要的内容到自己的项目中\n\n---\n\n## 安装\n\n```shell\npip install botoy -i https://pypi.org/simple --upgrade\n```\n\n## 示例\n\n如果你配置好了 OPQ，并且配置保持默认(bot 连接地址`http://127.0.0.1:8086`)，\n下面示例可实现在收到群消息内容为 `test` 时回复 `ok`\n\n新建文件 `bot.py`\n\n```python\nfrom botoy import bot, ctx, S\n\n@bot\nasync def test():\n    if ctx.g and ctx.g.text == 'test':\n        await S.text('ok')\n\nbot.print_receivers()\nbot.run()\n```\n\n运行 `python bot.py`\n\n```\n+------+--------+-------+----------------+\n| Name | Author | Usage |      Meta      |\n+------+--------+-------+----------------+\n| test |        |       | test.py line 4 |\n+------+--------+-------+----------------+\nℹ️ 04-15 19:21:58 INFO 连接中[ws://localhost:8086/ws]...\n✔️ 04-15 19:21:58 SUCCESS 连接成功!\n```\n\n# [文档](https://botoy.readthedocs.io/)\n\n\u003c!-- # [简单例子](https://github.com/opq-osc/botoy-plugins) --\u003e\n\n\u003c!-- # [插件模板](https://github.com/opq-osc/botoy-plugin-template) --\u003e\n\n# 感谢\n\n[yuban10703](https://github.com/yuban10703)\n[milkice](https://github.com/milkice233)\n\n# LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopq-osc%2Fbotoy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopq-osc%2Fbotoy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopq-osc%2Fbotoy/lists"}