wakeup课程表
Project description
📖 介绍
一个简单的 NoneBot2 插件,基于 wakeup 课程表 导入与查询课表
[!NOTE] 本项目改编自 nonebot-plugin-ai-timetable, 如果你对项目中部分代码的相似性有疑问,也请随时联系我
💿 安装
使用 nb-cli 安装
nb plugin install nonebot-plugin-wakeup-timetable
使用 pip 安装
pip install nonebot-plugin-wakeup-timetable
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot-plugin-wakeup-timetable"]
[!WARNING] 第一次使用plugin-orm,或者插件定义的模型有所更新时,需要用
nb orm upgrade升级数据库
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| config | type | default | example | usage |
|---|---|---|---|---|
| TIMETABLE_PIC | bool | true | TIMETABLE_PIC=false | 可选择某日课表以图片/文字发送,默认以图片发送(true) |
💿依赖
[!NOTE] 插件依赖会在安装时自动安装,如果安装失败,你可以按照以下指令手动再次安装
nb plugin install nonebot_plugin_htmlrender
nb plugin install nonebot_plugin_apscheduler
nb plugin install nonebot_plugin_alconna
nb plugin install nonebot_plugin_orm
🎉命令
-
课表帮助:获取帮助
-
导入课表:解析wakeup课程表分享的链接并导入数据库
-
查询课表+[参数]:查询[参数]的课表,参数支持[本周/下周、周x、今天/明天/后天、课程名]
📝 TODO
- 增加早八,下节课的查询
- 实现课程提醒
- 优化代码
- 在群聊中查看群友课程
🙏 致谢
-
nonebot-plugin-ai-timetable - 提供源码及思路
其实是完全照搬(bushi -
curriculum-table - 提供灵感
-
nonebot2 - 插件开发框架
-
wakeup 课程表 - 提供课程表及api
📬 贡献
这是我第一次尝试写 NoneBot2 的插件,很多地方写得不够好,欢迎大家指出问题!
如果你发现 Bug、有功能建议、或者想一起完善插件,欢迎提交 Issue 或 PR~
📄 开源许可
本项目使用 MIT License 开源。
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_wakeup_timetable-0.1.0.tar.gz.
File metadata
- Download URL: nonebot_plugin_wakeup_timetable-0.1.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e662daa93347b872627e993d0ccdaf2d07f7fbef5ae412df2f6cb7490c1c6491
|
|
| MD5 |
52209a6a5f5be409aa40758f073f9791
|
|
| BLAKE2b-256 |
614145047350473924a9433841ea271264f5db9ebaa7136864751e2efc4e6c10
|
File details
Details for the file nonebot_plugin_wakeup_timetable-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_wakeup_timetable-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dab116080f5485dfd3062e8f9b9ef4686da2f09f9f78246f72a3ad9c28e21ba7
|
|
| MD5 |
0c8f1fa3b650232dee7c38a2c0cac52c
|
|
| BLAKE2b-256 |
3c381266cb53a25b6fc15dd4d367daeb608d44afd58542b8afda40cce2f73847
|