Skip to main content

wakeup课程表

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-wakeup-timetable

✨ 基于 NoneBot2 的 wakeup 课程表插件 ✨

license pypi python

📖 介绍

一个简单的 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

  • 增加早八,下节课的查询
  • 实现课程提醒
  • 优化代码
  • 在群聊中查看群友课程

🙏 致谢

📬 贡献

这是我第一次尝试写 NoneBot2 的插件,很多地方写得不够好,欢迎大家指出问题!

如果你发现 Bug、有功能建议、或者想一起完善插件,欢迎提交 Issue 或 PR~

📄 开源许可

本项目使用 MIT License 开源。

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_wakeup_timetable-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_wakeup_timetable-0.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_wakeup_timetable-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_wakeup_timetable-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e662daa93347b872627e993d0ccdaf2d07f7fbef5ae412df2f6cb7490c1c6491
MD5 52209a6a5f5be409aa40758f073f9791
BLAKE2b-256 614145047350473924a9433841ea271264f5db9ebaa7136864751e2efc4e6c10

See more details on using hashes here.

File details

Details for the file nonebot_plugin_wakeup_timetable-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_wakeup_timetable-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dab116080f5485dfd3062e8f9b9ef4686da2f09f9f78246f72a3ad9c28e21ba7
MD5 0c8f1fa3b650232dee7c38a2c0cac52c
BLAKE2b-256 3c381266cb53a25b6fc15dd4d367daeb608d44afd58542b8afda40cce2f73847

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