koishi-plugin-common
Advanced tools
Comparing version 3.0.0-alpha.19 to 3.0.0-alpha.20
@@ -21,3 +21,2 @@ "use strict"; | ||
ctx.command('info', '查看用户信息', { authority: 0 }) | ||
.alias('i') | ||
.shortcut('我的信息') | ||
@@ -24,0 +23,0 @@ .userFields(['name']) |
@@ -5,2 +5,3 @@ "use strict"; | ||
ctx.command('usage [...commands]', '查看指令的调用次数') | ||
.shortcut('调用次数', { fuzzy: true }) | ||
.action(async ({ meta }, ...commands) => { | ||
@@ -7,0 +8,0 @@ const { usage } = meta.$user; |
{ | ||
"name": "koishi-plugin-common", | ||
"description": "Common plugins for Koishi", | ||
"version": "3.0.0-alpha.19", | ||
"version": "3.0.0-alpha.20", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "typings": "dist/index.d.ts", |
@@ -27,3 +27,2 @@ import { Context, UserField, UserData, getTargetId } from 'koishi-core' | ||
ctx.command('info', '查看用户信息', { authority: 0 }) | ||
.alias('i') | ||
.shortcut('我的信息') | ||
@@ -30,0 +29,0 @@ .userFields(['name']) |
@@ -5,2 +5,3 @@ import { Context } from 'koishi-core' | ||
ctx.command('usage [...commands]', '查看指令的调用次数') | ||
.shortcut('调用次数', { fuzzy: true }) | ||
.action(async ({ meta }, ...commands) => { | ||
@@ -7,0 +8,0 @@ const { usage } = meta.$user |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
381155