Skip to main content

No project description provided

Project description

nonebot

nonebot-plugin-ai-timetable

基于Nonebot2的对接小爱课程表的插件

前言

这是本人第一次在github发布的项目,也是第一个python项目,完全是萌新,很多地方写的可能很拉,大佬轻喷 目前还不是很完善,有什么bug或者建议欢迎提issue

安装

  1. 通过pipnb安装;

  2. 本地数据保存在/data/userdata.json以及/data/usertable,分别对应用户发送的链接和本地保存的课表

简介

  1. 一键导入小爱课表,让你的bot实现小爱课表的功能

  2. 插件配置

    暂无以后可能慢慢增加
    

命令

  1. 我的课表、小爱课表、本周课表、下周课表:获取本周/下周的完全课表,使用前须先导入课表

  2. 导入课表:先打开小爱课程表,手动添加或从教务导入课程后

    Image text

    在基本设置里把开始上课时间等调整好之后,把分享课表得到的链接发送给bot即可导入

  3. 订阅/取消订阅某天课表:导入课表后,发送订阅xx课表,如订阅周一课表,就可以在这天的前一天晚上10点定时推送第二天要上的课

  4. 更新课表;如果在小爱课程表里修改了课程,发送该条指令即可更新本地的课表

未完待续

计划

⬜︎ 完善插件

⬜︎ 增加更多的配置项

⬜︎ 查询下节课的信息

⬜︎ 订阅指定的课

⬜︎ 查询早八等

存在的问题

  1. 小爱课表分享的链接可能会过期,可能会导致无法进入指定页面截图
  2. 还不能做到私聊订阅课表
  3. 机器人重启后定时任务会丢失

依赖

nb plugin install nonebot_plugin_htmlrender
nb plugin install nonebot_plugin_apscheduler

若不安装nonebot_plugin_htmlrender插件会无法导入在线课表

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_ai_timetable-0.1.1.tar.gz (6.6 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_ai_timetable-0.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_ai_timetable-0.1.1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_ai_timetable-0.1.1.tar.gz
Algorithm Hash digest
SHA256 70788e5224556ea285fe87fc2f97838938b85c503db890b90706cf5f7f2f2520
MD5 0b1a69b24cfb9513eaa4e5f2258c0be1
BLAKE2b-256 20b2faeff216304a861d4500301a82f16682cd3daf4f2460d0619bf7cf09c447

See more details on using hashes here.

File details

Details for the file nonebot_plugin_ai_timetable-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_ai_timetable-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15d56c97b9df030835e7d50a613f7758875a285150c398d865729ec4f4555dba
MD5 71c1dcfbbc9371fba19c59513c6de34b
BLAKE2b-256 7220024f688917e413ccdca5ee562e921f231aaa123f2200df518414f8633f0d

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