如何实现机器人定时发送消息 |
您所在的位置:网站首页 › qq中能不能定时发送某个消息呢 › 如何实现机器人定时发送消息 |
以下内容来自 koishi-plugin-schedule/docs/index.md at 50ec090c226ee2985584a18876b36db7c4d960c0 · koishijs/koishi-plugin-schedule · GitHub koishi-plugin-schedulekoishi-plugin-schedule 用于在用户侧设置计划任务。 如果想要在开发者侧设置计划任务,可以使用 koishi-plugin-cron。 schedule 1m – echo 233 日程已创建,编号为 1。 schedule -l 1. 今天 10:01:echo 233 ——— 1 分钟后 ——— 233 指令:schedule添加或查找计划任务。 基本语法:schedule [time] -- [command] 选项列表: / 设置触发的间隔秒数 -l, --list 查看已经设置的日程 -e, --ensure 错过时间也确保执行 -f, --full 查找全部上下文 -d, --delete 删除已经设置的日程 定时器语法 1m: 1 分钟后触发 2h30m: 2 小时 30 分钟后触发 10:00: 今天 10 点触发 1m / 10s: 1 分钟后每隔 10 秒触发 10:00 / 1d: 从今天起每天 10 点触发 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |