{"id":19539601,"url":"https://github.com/pzzzzz5142/pbot","last_synced_at":"2025-06-25T19:32:25.459Z","repository":{"id":132692964,"uuid":"315622197","full_name":"Pzzzzz5142/Pbot","owner":"Pzzzzz5142","description":"一个相对不那么xjb写的QQ🤖。基于 go-cqhttp + nonebot2","archived":false,"fork":false,"pushed_at":"2022-04-16T12:03:52.000Z","size":620,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T16:45:51.098Z","etag":null,"topics":["cqhttp","gohttp","nonebot","nonebot2","onebot","qqbot","rss"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pzzzzz5142.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-11-24T12:15:35.000Z","updated_at":"2024-09-23T03:50:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"de7a74e1-fdf9-4ab6-9466-5c912f5222ba","html_url":"https://github.com/Pzzzzz5142/Pbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pzzzzz5142/Pbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzzzzz5142%2FPbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzzzzz5142%2FPbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzzzzz5142%2FPbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzzzzz5142%2FPbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pzzzzz5142","download_url":"https://codeload.github.com/Pzzzzz5142/Pbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pzzzzz5142%2FPbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261940675,"owners_count":23233577,"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","gohttp","nonebot","nonebot2","onebot","qqbot","rss"],"created_at":"2024-11-11T02:42:33.959Z","updated_at":"2025-06-25T19:32:25.443Z","avatar_url":"https://github.com/Pzzzzz5142.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Pbot](https://socialify.git.ci/Pzzzzz5142/Pbot/image?description=1\u0026font=Source%20Code%20Pro\u0026language=1\u0026logo=https%3A%2F%2Fraw.githubusercontent.com%2FPzzzzz5142%2FPbot%2Fmaster%2FPbot%2Favatar.JPG\u0026owner=1\u0026pattern=Signal\u0026stargazers=1\u0026theme=Light\u0026forks=1)\n\n# Pbot\n\n一个相对不那么xjb写的，并基于Nonebot2的QQ🤖。\n\n功能很杂，代码风格很要命。\n\n试用 QQ 群：1037557679\n\n## 功能概览\n\n\u003e 蓝色字体的功能表示有使用帮助！点击它即可跳转！\n\n+ [**搜图**](https://github.com/Pzzzzz5142/Pbot/wiki/功能使用帮助#st) - st：包括以图搜图及关键字搜图。\n+ [**机器翻译**](https://github.com/Pzzzzz5142/Pbot/wiki/功能使用帮助#wm) - wm\n+ **Rss订阅及查看** - rss\n+ [**点歌**](https://github.com/Pzzzzz5142/Pbot/wiki/功能使用帮助#点歌) - 点歌\n+ **戳一戳**\n+ **切噜一下** - 切噜一下 | 切噜～♪ ：（抄自[Hoshino](https://github.com/Ice-Cirno/HoshinoBot)\n+ **根据 P 站 id 看原图** - cat\n+ **复读**\n+ **每日早上好**\n+ [**今日人品**](https://github.com/Pzzzzz5142/Pbot/wiki/功能使用帮助#jrrp) - jrrp\n+ **能不能好好说话** - hhsh\n\n## RoadMap\n\n| 版本   | 发布时间或 Milestone 截至时间            | Key Feature               |\n| ------ | ---------------------------------------- | ------------------------- |\n| v0.1.0 | 2020-11-24                               | 老 Bot 的关键功能迁移完成 |\n| v0.2.0 | 2021-5-27                                | 老 Bot 迁移完成           |\n| v0.3.0 | 估                                       | 配置方式优化              |\n| v0.4.0 | 沽                                       | 可迁移部署及文档完善      |\n| ？     | 咕咕咕                                   | 没想好                    |\n| ---    | （可能永远无法完成（真的不大可能有（（（ | web UI                    |\n\n\u003e 现在 wiki 还在 Working 中。（毕竟我太摸了）\n\n## 安装\n\n### 安装 Pbot 本体\n\n安装的步骤主要是装依赖、装收消息的东西（mirai之类的，推荐用go-cqhttp），然后就可以跑了。\n\n#### 安装收消息的东西\n\n现在收消息的东西很多，mirai、mirai-ok、go-cqhttp等等。因为 go-cqhttp 非常傻瓜无脑，一键安装，所以我就用的是他了。\n\n#### 安装依赖\n\n由于 nonebot2 本身就是使用poetry管理环境，因此这里也同样使用 poetry 管理环境。\n\n+ `clone` 本仓库并切到该文件夹：\n\n    `git clone https://github.com/Pzzzzz5142/Pbot.git \u0026\u0026 cd Pbot`\n\n+ 安装 poetry\n\n    你喜欢怎么装就怎么装\n\n+ 安装依赖：\n\n    `poetry install`\n\n    如果是国内的服务器，安装的时候可能速度比较慢。而 poetry 本质上还是依赖于 pip 进行安装，所以给 pip 换上国内源就可以加速了。\n    \n#### （~~可选~~必选！）安装数据库\n\n由于本 bot 使用的是一个异步框架，同时由于 sqlite 本身不支持异步的操作（~~或者说我没找到~~）。因此涉及到持久化的功能都使用到了 postgreSQL 数据库。\n\n使用到数据库的功能包括：`rss`记录推送及订阅信息、`功能开关`和`今日人品`。\n\n如果你想使用上述功能，则**必须**安装 postgreSQL 和 alembic。其中 alembic 用于数据库的迁移。\n\n~~当然如果你觉得这部分比较复杂或者不需要上述三个功能，则可以无视掉这一步。~~（由于技术力，不够pro这个是必要的！\n\n+ 安装 postgreSQL 和 alembic\n\n    你想怎么装就怎么装\n\n+ 安装数据库相关的依赖\n\n    `poetry install -E [db]`\n\n+ 迁移数据库\n\n    详见[配置](##配置)一节。（yysy，没写完）\n    \n### 安装 RSSHub\n\n同样的，本 bot 所使用的诸如 rss 订阅等功能都是依赖于 RSSHub 完成的。由于docker实在是太方便了，因此本 bot 建议的安装方式为使用 docker 安装，其他安装方式详见[这里](https://docs.rsshub.app/install/#docker-jing-xiang)（需翻墙）。\n\n+ 安装 RSSHub\n\n    `docker pull diygod/rsshub`\n\n+ 运行它！\n\n    `docker run -d --name rsshub -p 1200:1200 diygod/rsshub`\n\n*Working 中*\n\n## 配置\n\n~~（这里要写的好多啊淦）~~\n\n*Working 中*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpzzzzz5142%2Fpbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpzzzzz5142%2Fpbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpzzzzz5142%2Fpbot/lists"}