Giter Club home page Giter Club logo

nonebot-plugin-npu's Introduction

📖 介绍

nonebot-plugin-npu,翱翔门户成绩监控插件,能获取成绩、排名、绩点,当出现新成绩时推送给使用者

  • 获取成绩、绩点、排名
  • 出现新成绩时推送
  • 排名变动时推送
  • 宿舍电费监控
  • 排考检测
  • 课表提取

💿 安装

目前仅文件夹插件的安装(放在pyproject.tomlplugin_dirs字段的文件夹里)

git clone https://github.com/qllokirin/nonebot-plugin-npu.git ./{你的插件目录}

依赖安装

  • 1.激活python环境

    .\.venv\Scripts\activate   				(Windows)
    source \.venv\Scripts\activate			(Ubuntu)
    
  • 2.安装

    pip install requests imgkit==1.0.2 paho-mqtt==1.6.1 bs4 rsa
    nb plugin install nonebot-plugin-apscheduler nonebot_plugin_waiter
    
  • 3.安装wkhtmltopdf

    打开https://wkhtmltopdf.org/downloads.html安装
    
  • nb plugin安装方法

.env.prod/.env中写入以下字段,参考如下

npu_check_time=10
npu_if_check_grades=true
npu_if_check_rank=true
npu_if_check_exams=false
参数 说明
npu_check_time int 每多少分钟检测一次成绩
npu_if_check_grades bool 是否检测成绩
npu_if_check_rank bool 是否检测排名
npu_if_check_exams bool 是否检测新考试

🎉 使用

指令表

指令 范围 说明
/翱翔 私聊/艾特 登陆翱翔门户
/翱翔成绩 私聊/艾特 获取本学期的成绩
/翱翔排名 私聊/艾特 获取排名信息
/翱翔考试 私聊/艾特 获取未结束的考试信息
/翱翔全部成绩 私聊/艾特 获取全部成绩
/翱翔全部考试 私聊/艾特 获取全部考试信息
/翱翔电费绑定 私聊/艾特 绑定宿舍,当电费小于25时会推送消息
/翱翔电费查询 私聊/艾特 查询当前电费

效果图

演示效果

mail.png

nonebot使用

其实是为了方便自己后续再搭建一个 b站大佬的详细教程

pip install nb-cli
nb
> 创建一个nonebot项目
> simple
> 名字
> FastAPI
> OneBot V11
> Y
> Y
cd {项目名称}
# 激活python环境(可选)
.\.venv\Scripts\activate   				(Windows)
source \.venv\Scripts\activate			(Ubuntu)
# 启动
nb run --reload 

打开.env.prod追加如下内容

HOST=0.0.0.0  # 配置 NoneBot 监听的 IP / 主机名
PORT=22330  # 配置 NoneBot 监听的端口
SUPERUSERS=["123456"] # QQ账号 超级用户

gocq基本已g,登陆建议使用NapCatQQLagrange

致谢

翱翔门户登陆以及数据获取参考了:https://github.com/cheanus/Automation/blob/main/GradesMonitorLinux.py

nonebot-plugin-npu's People

Contributors

qllokirin avatar

Stargazers

 avatar xia avatar

Watchers

 avatar  avatar

nonebot-plugin-npu's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.