Skip to main content

基于nonebot异步框架的青年大学自动提交插件

Project description

bw2k9A.png

nonebot_plugin_auto_teenstudy

基于nonebot2的青年大学习自动提交插件,用于自动完成大学习,在后台留下记录,返回完成截图
GitHub issues GitHub forks GitHub stars GitHub license

各地区使用方式

参考

安装及更新

  1. 使用git clone https://github.com/ZMXC01/nonebot_plugin_auto_teenstudy.git指令克隆本仓库或下载压缩包文件
  2. 使用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=[""]
    
  • 请确保已安装以下第三方库(插件运行失败请检查第三方库有没有装完整)

    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/04

  • 将代码上传至pypi,可使用pip install nonebot_plugin_auto_teenstudy指令安装本插件
  • 增加已支持地区使用提示
  • 上传基础代码
  • 支持江西和湖北地区自动完成大学习(可在后台留记录)返回完成截图

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_auto_teenstudy-0.1.0.tar.gz (6.4 MB view hashes)

Uploaded Source

Built Distribution

Supported by

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