基于nonebot异步框架的青年大学自动提交插件
Project description
各地区使用方式(已经支持地区)
参考
安装及更新
- 使用
git clone https://github.com/ZMXC01/nonebot_plugin_auto_teenstudy.git
指令克隆本仓库或下载压缩包文件 - 使用
pip install nonebot-plugin-auto-teenstudy
来进行安装,使用pip install nonebot-plugin-auto-teenstudy -U
进行更新
导入插件
使用第一种安装方式
- 将
nonebot_plugin_auto_teenstudy
放在nb的plugins
目录下,运行nb机器人即可
使用第二种安装方式
- 在
bot.py
中添加nonebot.load_plugin("nonebot_plugin_auto_teenstudy")
或在pyproject.toml
里的[tool.nonebot]
中添加plugins = ["nonebot_plugin_auto_teenstudy"]
机器人配置
-
在nonebot的.env配置文件中设置好超管账号
SUPERUSERS=[""]
-
浙江地区至少需要额外配置一个关注了青春浙江公众号微信的openid,需要自行抓包
OPENID_ZJ=[""]
-
请确保已安装以下第三方库(插件运行失败请检查第三方库有没有装完整)
asyncio anti_useragent secrets httpx string bs4 PIL
功能列表
大学习
一、主人专用
1、添加大学习配置|添加大学习用户|add_dxx
指令格式:添加大学习配置#QQ号#地区#姓名#学校#团委(学院)#团支部(班级)
2、删除大学习配置|删除大学习用户|del_dxx
指令格式:删除大学习配置#QQ号
3、查看大学习用户列表
4、查看大学习用户|查看大学习配置|check_dxx_user
指令格式:查看大学习用户#QQ号
5、完成大学习|finish_dxx
指令格式:完成大学习#QQ号
6、开启(关闭)图片回复|图片回复开(关)
二、全员可用
1、提交大学习
2、我的大学习|查看我的大学习|my_dxx
3、大学习功能|大学习帮助|dxx_help
4、设置大学习配置|set_dxx
指令格式:设置大学习#地区#姓名#学校#团委(学院)#团支部(班级)
5、查组织|查班级|check_class
指令格式:查组织#地区简写(例江西为:jx)#学校名称#团委名称
Ps:查组织功能对湖北用户无效!
To Do
- 增加更多地区支持
- 优化 Bot
-
逐步升级成群管插件
更新日志
2022/06/05
2022/06/04
- 将代码上传至pypi,可使用
pip install nonebot-plugin-auto-teenstudy
指令安装本插件 - 增加已支持地区使用提示
- 上传基础代码
- 支持江西和湖北地区自动完成大学习(可在后台留记录)返回完成截图
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_auto_teenstudy-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae115ecc54538ddd1037bef60adb8cdb988e74516f29f51840a19992a9258d87 |
|
MD5 | 38c778fa63dcb228c1a2c5a8ce863c64 |
|
BLAKE2b-256 | 510d02698e1bb1c422a6fc328e09cfe8cb118036b5350df98e4cd94c793871b2 |
Close
Hashes for nonebot_plugin_auto_teenstudy-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f8b5bd481d13adfe8badcd2c8b1363d8f36d5434b5e4905df195cd5103379cd |
|
MD5 | f35ad44981dba43a818d765bb0426aa8 |
|
BLAKE2b-256 | d1e90006ab1a3a31e1778e47519e51aca29b3d7af6a21f97fc6d222b69262b73 |