Skip to content

Commit

Permalink
fix(rate-limit): remove parent command, fix #465
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 17, 2022
1 parent 4a35bb3 commit ef3be19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/a11y/rate-limit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function apply(ctx: Context) {
return output
})

ctx.command('user.usage [key] [value:posint]', '调用次数信息', { authority: 1 })
ctx.command('usage [key] [value:posint]', '调用次数信息', { authority: 1 })
.userFields(['usage'])
.option('set', '-s 设置调用次数', { authority: 4 })
.option('clear', '-c 清空调用次数', { authority: 4 })
Expand Down Expand Up @@ -151,7 +151,7 @@ export function apply(ctx: Context) {
return output.join('\n')
})

ctx.command('user.timer [key] [value:date]', '定时器信息', { authority: 1 })
ctx.command('timer [key] [value:date]', '定时器信息', { authority: 1 })
.userFields(['timers'])
.option('set', '-s 设置定时器', { authority: 4 })
.option('clear', '-c 清空定时器', { authority: 4 })
Expand Down

0 comments on commit ef3be19

Please sign in to comment.