Skip to main content

电子课程表

Project description

这是一个课程表插件,帮助群组成员方便地管理和查询自己以及群友的课程安排。

✨ 功能特性

  • 与原本插件相同的部分不再赘述
  • 将课程表与群聊分离,只和用户有关
  • 命令支持偏移参数或指定日期
  • 课表图片可以自适应显示,防止超长课程名
  • 现在可以显示课程地点
  • 对于相同时间相同名称的课程可以去重
  • 修正 WakeUp 课程表导入单双周错误的问题
  • 支持课前自动提醒,提醒时间可配置

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-course-schedule
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-course-schedule
pdm
pdm add nonebot-plugin-course-schedule
poetry
poetry add nonebot-plugin-course-schedule
conda
conda install nonebot-plugin-course-schedule

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_course_schedule"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的配置

配置项 必填 说明
course_font_path 字体路径,默认插件目录下 resource/MapleMono-NF-CN-Medium.ttf
course_reminder_enabled 是否启用课前提醒,默认为 True
course_reminder_offset 课前提醒提前量(分钟),默认 30
course_reminder_interval 上课提醒检查间隔(分钟),默认 5,此值不应大于60 或 course_reminder_offset。

📝 命令列表

命令 功能描述
绑定课表 在群聊中发送此命令,然后根据提示发送你的 .ics 文件或 WakeUp 分享口令来绑定课表。
绑定群聊 让自己显示在本群的课表中。
课表 <offset|date> 显示你自己今天(或查询日期)接下来要上的课程。
群课表 <offset|date> 显示群里所有成员当前正在上或下一节要上的课程(或查询日期将要上的课)。
上课排行 显示本周群友上课时长和节数的排行榜。
课前提醒 (自动触发) 插件会根据配置在课前自动发送提醒,无需手动命令。

❓ 如何获取 .ics 文件或 WakeUp 口令?

  • .ics 文件:将你的课表导入课表软件(如 Wakeup课程表 或类似应用),然后从软件的设置中选择“导出”,并导出为日历文件(通常文件后缀为 .ics),即可获得所需文件。
  • WakeUp 口令:在 WakeUp课程表 应用中,选择“分享课表”,然后选择“分享给好友”,复制生成的口令即可。

🤝 贡献

欢迎提交 Pull Request 或 Issue 来改进这个插件!

特别感谢

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_course_schedule-1.1.1.tar.gz (9.5 MB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file nonebot_plugin_course_schedule-1.1.1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_course_schedule-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7081a63a18a8ddd609c63d47e17366e2fa02e3b462ab4f3d022980a3a9edb62b
MD5 ad2c8ee362b89197512182fa773700b3
BLAKE2b-256 3a45bd293620ac4ffcc1ec028c588f9b9cc8a72c31313c82a35e72e8803f1765

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_course_schedule-1.1.1.tar.gz:

Publisher: pypi-publish.yml on GLDYM/nonebot-plugin-course-schedule

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_course_schedule-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_course_schedule-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d3bd3b5a99b360059adae46195adf11a8bb2dfdc93695e20ea48dbb08f3f3da
MD5 920b0ffa901583b2054f983573cc493e
BLAKE2b-256 51dd995106943e5be6abfe6f1b20f7e7ca5c4456f6d2510283f782cda94b8ff7

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_course_schedule-1.1.1-py3-none-any.whl:

Publisher: pypi-publish.yml on GLDYM/nonebot-plugin-course-schedule

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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