Skip to content

Commit

Permalink
fix(image-search): fix subcommand hell (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish authored Mar 22, 2021
1 parent e7d5970 commit 37aec59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/plugin-image-search/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export function apply(ctx: Context, config: Config = {}) {
ctx.command('search [image]', '搜图片')
.shortcut('搜图', { fuzzy: true })
.action(search(mixedSearch))
.subcommand('saucenao [image]', '使用 saucenao 搜图')
ctx.command('search/saucenao [image]', '使用 saucenao 搜图')
.action(search(saucenao))
.subcommand('ascii2d [image]', '使用 ascii2d 搜图')
ctx.command('search/ascii2d [image]', '使用 ascii2d 搜图')
.action(search(ascii2d))
.subcommand('iqdb [image]', '使用 iqdb 搜图')
ctx.command('search/iqdb [image]', '使用 iqdb 搜图')
.action(search(iqdb))

const pendings = new Set<string>()
Expand Down

0 comments on commit 37aec59

Please sign in to comment.