Skip to main content

基于nonebot2的青年大学习插件

Project description

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使用

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_youthstudy-1.1.8.tar.gz (16.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_youthstudy-1.1.8-py3-none-any.whl (16.3 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_youthstudy-1.1.8.tar.gz.

File metadata

  • Download URL: nonebot_plugin_youthstudy-1.1.8.tar.gz
  • Upload date:
  • Size: 16.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.13 Windows/10

File hashes

Hashes for nonebot_plugin_youthstudy-1.1.8.tar.gz
Algorithm Hash digest
SHA256 23883a5344d4b76104fda98c17962a0c7b1bdde0d0c9e08ac2c0e99f4b868356
MD5 f0e954795a48ce32c602e31509c9692b
BLAKE2b-256 c9c995c0a763656e6247e7ee9900f375aef2665e409d68e028a12ad35833027c

See more details on using hashes here.

File details

Details for the file nonebot_plugin_youthstudy-1.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_youthstudy-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0f32d10dcd341d67996aeddc5539d4cc8da8f26dc0f6128ae0eec92e59e02da3
MD5 61cf38c160ba86571c4f1e460a403217
BLAKE2b-256 407357ae1e5daf318014769c02ad257940873abf10ea11c28344f54494c6fb73

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page