koishi-plugin-common
Advanced tools
Comparing version 3.0.0-beta.6 to 3.0.0-beta.7
@@ -141,5 +141,5 @@ "use strict"; | ||
.before(session => !session.$app.database) | ||
.option('-u, --user [user]', '指定目标用户') | ||
.option('-g, --group [group]', '指定目标群') | ||
.option('-G, --this-group', '指定目标群为本群') | ||
.option('user', '-u [user] 指定目标用户') | ||
.option('group', '-g [group] 指定目标群') | ||
.option('thisGroup', '-G, --this-group 指定目标群为本群') | ||
.action(async ({ session, options }, name, ...args) => { | ||
@@ -146,0 +146,0 @@ const isGroup = 'g' in options || 'G' in options; |
@@ -54,4 +54,4 @@ "use strict"; | ||
.before(session => !session.$app.database) | ||
.option('-f, --forced', '无视 noEmit 标签进行广播') | ||
.option('-o, --only', '仅向当前 Bot 负责的群进行广播') | ||
.option('forced', '-f 无视 noEmit 标签进行广播') | ||
.option('only', '-o 仅向当前 Bot 负责的群进行广播') | ||
.action(async ({ options, session }, message) => { | ||
@@ -58,0 +58,0 @@ if (!message) |
@@ -10,6 +10,6 @@ "use strict"; | ||
.before(session => !session.$app.database) | ||
.option('-u, --user [id]', '使用私聊上下文') | ||
.option('-g, --group [id]', '使用群聊上下文') | ||
.option('-m, --member [id]', '使用当前群/讨论组成员上下文') | ||
.option('-t, --type [type]', '确定发送信息的子类型') | ||
.option('user', '-u [id] 使用私聊上下文') | ||
.option('group', '-g [id] 使用群聊上下文') | ||
.option('member', '-m [id] 使用当前群/讨论组成员上下文') | ||
.option('type', '-t [type] 确定发送信息的子类型') | ||
.usage([ | ||
@@ -16,0 +16,0 @@ '私聊的子类型包括 other(默认),friend,group。', |
@@ -7,7 +7,7 @@ "use strict"; | ||
ctx.command('echo <message...>', '向多个上下文发送广播', { authority: 2 }) | ||
.option('-a, --anonymous', '匿名发送消息', { authority: 3 }) | ||
.option('-A, --force-anonymous', '匿名发送消息', { authority: 3 }) | ||
.option('-e, --unescape', '发送非转义的消息', { authority: 3 }) | ||
.option('-u, --user <id>', '指定信息发送的目标 QQ 号', { isString: true, authority: 4 }) | ||
.option('-g, --group <id>', '指定信息发送的目标群号', { isString: true, authority: 4 }) | ||
.option('anonymous', '-a 匿名发送消息', { authority: 3 }) | ||
.option('forceAnonymous', '-A 匿名发送消息', { authority: 3 }) | ||
.option('unescape', '-e 发送非转义的消息', { authority: 3 }) | ||
.option('user', '-u <id> 指定信息发送的目标 QQ 号', { type: 'string', authority: 4 }) | ||
.option('group', '-g <id> 指定信息发送的目标群号', { type: 'string', authority: 4 }) | ||
.usage('各 id 之间请使用逗号分隔。') | ||
@@ -14,0 +14,0 @@ .action(async ({ options, session }, message) => { |
@@ -26,3 +26,3 @@ "use strict"; | ||
.before(session => !session.$app.database) | ||
.option('-u, --user [target]', '指定目标', { authority: 3 }) | ||
.option('user', '-u [target] 指定目标', { authority: 3 }) | ||
.action(async ({ session, options }) => { | ||
@@ -29,0 +29,0 @@ let user; |
{ | ||
"name": "koishi-plugin-common", | ||
"description": "Common plugins for Koishi", | ||
"version": "3.0.0-beta.6", | ||
"version": "3.0.0-beta.7", | ||
"main": "dist/index.js", | ||
@@ -38,5 +38,5 @@ "typings": "dist/index.d.ts", | ||
"axios": "^0.19.2", | ||
"koishi-core": "^2.0.0-beta.6", | ||
"koishi-utils": "^2.1.2" | ||
"koishi-core": "^2.0.0-beta.7", | ||
"koishi-utils": "^2.1.3" | ||
} | ||
} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
65054
Updatedkoishi-core@^2.0.0-beta.7
Updatedkoishi-utils@^2.1.3