mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
Bumps the dev-update group with 7 updates: | Package | From | To | | --- | --- | --- | | [pre-commit](https://github.com/pre-commit/pre-commit) | `3.6.2` | `3.7.0` | | [ruff](https://github.com/astral-sh/ruff) | `0.3.0` | `0.3.5` | | [pytest](https://github.com/pytest-dev/pytest) | `7.4.4` | `8.1.1` | | [pytest-cov](https://github.com/pytest-dev/pytest-cov) | `4.1.0` | `5.0.0` | | [pytest-mock](https://github.com/pytest-dev/pytest-mock) | `3.12.0` | `3.14.0` | | [respx](https://github.com/lundberg/respx) | `0.20.2` | `0.21.1` | | [nonebot-adapter-qq](https://github.com/nonebot/adapter-qq) | `1.4.2` | `1.4.3` | Updates `pre-commit` from 3.6.2 to 3.7.0 - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](https://github.com/pre-commit/pre-commit/compare/v3.6.2...v3.7.0) Updates `ruff` from 0.3.0 to 0.3.5 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.3.0...v0.3.5) Updates `pytest` from 7.4.4 to 8.1.1 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.4.4...8.1.1) Updates `pytest-cov` from 4.1.0 to 5.0.0 - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-cov/compare/v4.1.0...v5.0.0) Updates `pytest-mock` from 3.12.0 to 3.14.0 - [Release notes](https://github.com/pytest-dev/pytest-mock/releases) - [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.12.0...v3.14.0) Updates `respx` from 0.20.2 to 0.21.1 - [Release notes](https://github.com/lundberg/respx/releases) - [Changelog](https://github.com/lundberg/respx/blob/master/CHANGELOG.md) - [Commits](https://github.com/lundberg/respx/compare/0.20.2...0.21.1) Updates `nonebot-adapter-qq` from 1.4.2 to 1.4.3 - [Release notes](https://github.com/nonebot/adapter-qq/releases) - [Commits](https://github.com/nonebot/adapter-qq/compare/v1.4.2...v1.4.3) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-update - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dev-update - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-major dependency-group: dev-update - dependency-name: pytest-cov dependency-type: direct:development update-type: version-update:semver-major dependency-group: dev-update - dependency-name: pytest-mock dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-update - dependency-name: respx dependency-type: direct:development update-type: version-update:semver-minor dependency-group: dev-update - dependency-name: nonebot-adapter-qq dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dev-update ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
简介
一款自动爬取各种站点,社交平台更新动态,并将信息推送到 QQ 的机器人。
基于 NoneBot2
开发(诞生于明日方舟的蹲饼活动)
本项目原名原名 nonebot-hk-reporter
寓意本 Bot 要做全世界跑的最快的搬运机器人,后因名字过于暴力改名
支持的平台:
- 微博
- Bilibili
- Bilibili 直播
- RSS
- 明日方舟
- 网易云音乐
- FF14
功能
- 定时爬取指定网站
- 通过图片发送文本,防止风控
- 使用队列限制发送频率
- 使用网页后台管理 Bot 订阅
- 使用可以设置权重的调度器按时间调节不同账号的权重
使用方法
!! 注意,如果要使用后台管理功能请使用 pypi 版本或者 docker 版本,如果直接 clone 源代码 需要按下面方式进行 build
cd ./admin-frontend
pnpm && pnpm run build
可以使用 Docker,docker-compose,作为插件安装在 nonebot 中,或者直接运行
在群里 at Bot 或者直接私聊 Bot“添加订阅”,按照提示输入需要订阅的账号,就可以愉快接收消息了。
参考文档
FAQ
- 报错
TypeError: 'type' object is not subscriptable
本项目使用了 Python 3.10 的语法,请将 Python 版本升级到 3.10 及以上,推荐使用 docker 部署 - bot 不理我
请确认自己是群主或者管理员,并且检查COMMAND_START
环境变量是否设为[""]
或者按照COMMAND_START
中的设置添加命令前缀,例:COMMAND_START=["/"]
则应发送/添加订阅
- 微博漏订阅了 微博更新了新的风控措施,某些含有某些关键词的微博会获取不到。
- 无法使用后台管理页面
- 确认自己正确配置了 nonebot 的端口,如果在远程或容器外访问网页请确保
HOST=0.0.0.0
- 确认自己的云服务器的防火墙配置正确
- 确认自己使用了正确的方法安装插件
- 确认自己正确配置了 nonebot 的端口,如果在远程或容器外访问网页请确保
参与开发
欢迎各种 PR,参与开发本插件很简单,只需要对相应平台完成几个接口的编写就行。你只需要一点简单的爬虫知识就行。
如果对整体框架有任何意见或者建议,欢迎 issue。
鸣谢
License
MIT
Languages
Python
90%
TypeScript
7.8%
CSS
0.7%
Jinja
0.6%
Dockerfile
0.6%
Other
0.3%