koishi-plugin-ll-schedule 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -463,26 +463,22 @@ function apply(ctx, config) {
|
|
|
463
463
|
return `✅ 本群已取消订阅任务 "${name}"`
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
ctx.command(config.subscribeKeyword + ' [taskName:text]', '让当前群订阅指定任务的推送')
|
|
467
|
-
.authority(config.subscribeAuthority)
|
|
466
|
+
ctx.command(config.subscribeKeyword + ' [taskName:text]', '让当前群订阅指定任务的推送', { authority: config.subscribeAuthority })
|
|
468
467
|
.action(async ({ session }, taskName) => {
|
|
469
468
|
return await subscribeCurrentGroup(session, taskName)
|
|
470
469
|
})
|
|
471
470
|
|
|
472
|
-
ctx.command('lls.sub [taskName:text]', '订阅推送(备用入口)')
|
|
473
|
-
.authority(config.subscribeAuthority)
|
|
471
|
+
ctx.command('lls.sub [taskName:text]', '订阅推送(备用入口)', { authority: config.subscribeAuthority })
|
|
474
472
|
.action(async ({ session }, taskName) => {
|
|
475
473
|
return await subscribeCurrentGroup(session, taskName)
|
|
476
474
|
})
|
|
477
475
|
|
|
478
|
-
ctx.command(config.unsubscribeKeyword + ' [taskName:text]', '让当前群取消订阅指定任务的推送')
|
|
479
|
-
.authority(config.subscribeAuthority)
|
|
476
|
+
ctx.command(config.unsubscribeKeyword + ' [taskName:text]', '让当前群取消订阅指定任务的推送', { authority: config.subscribeAuthority })
|
|
480
477
|
.action(async ({ session }, taskName) => {
|
|
481
478
|
return await unsubscribeCurrentGroup(session, taskName)
|
|
482
479
|
})
|
|
483
480
|
|
|
484
|
-
ctx.command('lls.unsub [taskName:text]', '取消订阅(备用入口)')
|
|
485
|
-
.authority(config.subscribeAuthority)
|
|
481
|
+
ctx.command('lls.unsub [taskName:text]', '取消订阅(备用入口)', { authority: config.subscribeAuthority })
|
|
486
482
|
.action(async ({ session }, taskName) => {
|
|
487
483
|
return await unsubscribeCurrentGroup(session, taskName)
|
|
488
484
|
})
|