We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支持采用 crontab 的格式配置定时任务,已经支持下面的任务类型:
[ { "expression": "0 8 * * 0-4", "name": "play", "did": "123456789", "arg1": "周杰伦晴天" }, { "expression": "10 8 * * 0-4", "name": "stop", "did": "123456789" }, { "expression": "0 9 * * *", "name": "play", "did": "123456789", "arg1": "周杰伦晴天" }, { "expression": "0 10 * * *", "name": "play_music_list", "did": "123456789", "arg1": "周杰伦" }, { "expression": "30 10 * * *", "name": "play_music_list", "did": "123456789", "arg1": "周杰伦|晴天" }, { "expression": "0 7 * * *", "name": "tts", "did": "123456789", "arg1": "早上好!该起床了!" }, { "expression": "0 3 * * *", "name": "refresh_music_list" }, { "expression": "* * * * *", "name": "set_volume", "did": "123456789", "arg1": "25" }, { "expression": "* * * * *", "name": "set_play_type", "did": "123456789", "arg1": "2" } ]
示例中的意思是:
注意星期一是0,星期二是1,星期日是6。 (0-6 or mon,tue,wed,thu,fri,sat,sun) The first weekday is always monday.
|
The text was updated successfully, but these errors were encountered:
feat: 新增定时任务功能 #182
ec3dc57
0.3.38版本功能。
Sorry, something went wrong.
No branches or pull requests
支持采用 crontab 的格式配置定时任务,已经支持下面的任务类型:
示例
示例中的意思是:
参数意思
|
符合加上目录下面的歌曲名,也可不加。The text was updated successfully, but these errors were encountered: