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.
Files changed (2) hide show
  1. package/index.js +4 -8
  2. 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
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-ll-schedule",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Scheduled message sender with text/image support, works with official QQ bot",
5
5
  "main": "index.js",
6
6
  "files": [