安装
nb plugin install nonebot_plugin_youthstudy
或者
pip install nonebot_plugin_youthstudy
更新
nb plugin update nonebot_plugin_youthstudy
或者
pip install nonebot_plugin_youthstudy -U
导入插件
- 在
pyproject.toml里的[tool.nonebot]中添加plugins = ["nonebot_plugin_youthstudy"]
注:如果你使用nb安装插件,则不需要设置此项
添加配置
-
运行一遍bot,然后关闭
-
在bot目录的data目录下修改
study_config.json文件,添加如下配置:"SUPER_USERS": ["超级用户qq号"]
正式使用
| 命令 | 举例 | 说明 |
|---|---|---|
| 青年大学习/大学习 | 青年大学习 | 获取大学习答案 |
| 开启/关闭大学习推送 | 开启大学习推送 | 在群聊中仅有超级用户能开启推送,私聊任何人都能开启推送,但需要加好友 |
| 开启/关闭大学习全局推送 | 关闭大学习全局推送 | 关闭全局推送后,所有的群聊、私聊推送任务都会关闭,仅超级用户使用 |
| 同意/拒绝+qq号 | 同意1234567 | 处理好友请求,仅超级用户使用 |
| 同意/拒绝所有好友请求 | 拒绝所有好友请求 | 拒绝所有的好友请求,仅超级用户使用 |
| 大学习截图 | 大学习截图 | 获取主页截图 |
| 完成截图 | 完成截图 | 获取大学习完成截图 |
| 大学习帮助 | 大学习帮助 | 获取命令列表 |
TODO
- 优化机器人
更新日志
2022/9/26
- 修改异常抓取位置
2022/9/19
- 增加异常抓取
2022/9/12
- 修复获取答案失败的bug
2022/9/8
- 修复无法获取截图的bug
2022/6/17
- 修复bug,降低python版本要求为>=3.8
2022/5/7
- 代码重构
2022/4/24
- 支持对机器人发送口令开关定时推送功能
- 支持对机器人发指令设置推送相关好友/群聊
2022/4/18
- 支持自动获取青年大学习完成截图功能。如果您所在学校会查后台观看记录,请前往相应平台观看1分钟,确保留下观看记录!
2022/4/17
- 支持通过检查更新自动提醒完成青年大学习,请参照机器人配置进行配置
2022/3/5
- 支持nonebot[v2.0.0-beta2],请更新至最新版nonebot使用
Metadata
Release files for nonebot-plugin-youthstudy 1.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_youthstudy-1.1.8.tar.gz | 16.3 MB | Without provenance | Details for nonebot_plugin_youthstudy-1.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_youthstudy-1.1.8-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_youthstudy-1.1.8-py3-none-any.whl |
Total release size: 32.6 MB
Release files / nonebot_plugin_youthstudy-1.1.8.tar.gz
| Download URL | nonebot_plugin_youthstudy-1.1.8.tar.gz |
|---|---|
| Size | 16.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23883a5344d4b76104fda98c17962a0c7b1bdde0d0c9e08ac2c0e99f4b868356
|
|
BLAKE2b-256 checksum How to use checksums |
c9c995c0a763656e6247e7ee9900f375aef2665e409d68e028a12ad35833027c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.9.13 Windows/10
|
Release files / nonebot_plugin_youthstudy-1.1.8-py3-none-any.whl
| Download URL | nonebot_plugin_youthstudy-1.1.8-py3-none-any.whl |
|---|---|
| Size | 16.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f32d10dcd341d67996aeddc5539d4cc8da8f26dc0f6128ae0eec92e59e02da3
|
|
BLAKE2b-256 checksum How to use checksums |
407357ae1e5daf318014769c02ad257940873abf10ea11c28344f54494c6fb73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.9.13 Windows/10
|
Security for nonebot-plugin-youthstudy 1.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.