npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@el-bot/plugin-class-schedule

v0.0.7

Published

课程表

Downloads

13

Readme

课程表 class-schedule

  • 作者:@ADD-SP
  • 简介:根据配置内容定时发送上课信息。

示例

class-schedule:
  - advance: "10m"
    courses:
      - time: "TUE 8:00"
        name: "语文"
        place: "第一教室"
        teacher: "张三"
    target:
      friend:
        - 小明的 QQ
      group:
        - 小明的班级群群号
  - advance: "1h10m"
    courses:
      - time: "TUE 8:00"
        name: "数学"
        place: "第一教室"
        teacher: "李四"
    target:
      friend:
        - 小红的 QQ
      group:
        - 小红的班级群

这段配置表示:

  • 周二八点(24 小时制),语文课在第一教室上课,授课老师为张三,提前 10 分钟发送消息提醒,提醒消息发送给小明及其班级群。
  • 周二八点(24 小时制),数学课课在第一教室上课,授课老师为李四,提前 1 小时 10 分钟发送消息提醒,提醒消息发送给小红及其班级群。

语法

class-schedule[].advance

  • 类型:String
  • 可否省略:允许省略
  • 需要满足的正则表达式:^([0-9]-d)?([0-9]-h)?([0-9]-m)?$
    • d表示天数
    • h表示小时
    • m表示分钟
  • 功能:指定在提前于开课多久发送消息提醒
  • 默认:10m
  • 示例:
    • advance: 10m表示提前 10 分钟发送消息提醒
    • advance: 1h表示提前 1 小时发送消息提醒
    • advance: 1d表示提前 1 天发送消息提醒
    • advance: 1d1h1m表示提前 1 天 1 小时 1 分钟十分钟发送消息提醒
    • advance: 1h1m表示提前 1 小时 1 分钟发送消息提醒

class-schedule[].courses.time

  • 类型:String
  • 可否省略:不可省略
  • 需要满足的正则表达式:^(MON|TUE|WED|THU|FRI|SAT|SUB)\s[0-9]{1,2}:[0-9]{1,2}$
  • 功能:声明开课时间(24 小时制)
  • 示例:time: MON 8:00表示周一上午八点开课

class-schedule[].courses.name

  • 类型:String
  • 可否省略:不可省略
  • 功能:课程名

class-schedule[].courses.place

  • 类型:String
  • 可否省略:允许省略
  • 功能:上课地点
  • 默认:未提供该信息

class-schedule[].courses.teacher

  • 类型:String
  • 可否省略:允许省略
  • 功能:授课教师
  • 默认:未提供该信息

class-schedule[].courses.other

  • 类型:String
  • 可否省略:允许省略
  • 功能:其它相关信息
  • 默认:无

class-schedule[].courses.advance

  • 类型:String
  • 可否省略:允许省略
  • 需要满足的正则表达式:同class_schedule[].advance
  • 功能:指定该门课程提前于开课多久发送消息提醒,将覆盖class_schedule.advance中的设置。
  • 默认:同class_schedule[].advance
  • 示例:同class_schedule[].advance