koishi-plugin-schedule
koishi-plugin-schedule 用于在用户侧设置计划任务。
TIP
如果想要在开发者侧设置计划任务,可以使用 koishi-plugin-cron。
——— 1 分钟后 ———
指令:schedule
添加或查找计划任务。
- 基本语法:
schedule [time] -- [command] - 选项列表:
/ <interval>设置触发的间隔秒数-l, --list查看已经设置的日程-e, --ensure错过时间也确保执行-f, --full查找全部上下文-d, --delete <id>删除已经设置的日程
定时器语法
1m: 1 分钟后触发2h30m: 2 小时 30 分钟后触发10:00: 今天 10 点触发1m / 10s: 1 分钟后每隔 10 秒触发10:00 / 1d: 从今天起每天 10 点触发
配置项
minInterval
- 类型:
number - 默认值:
60000
允许的最短时间间隔,单位为毫秒。如果传入的 interval 参数小于这个值,将会提示“时间间隔过短”。
@koishijs/common