Skip to main content
bw2k9A.png

nonebot_plugin_youthstudy

✨基于nonebot2的青年大学习插件,用于获取最新一期青年大学习答案✨
GitHub issues GitHub forks GitHub stars GitHub license

安装

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)

Source distribution for nonebot-plugin-youthstudy 1.1.8
File Size Uploaded
nonebot_plugin_youthstudy-1.1.8.tar.gz 16.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-youthstudy 1.1.8
File Interpreter ABI Platform
nonebot_plugin_youthstudy-1.1.8-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.8 This release

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page