koishi-plugin-nmc-radar 1.4.3 → 1.4.4
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.
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -343,7 +343,7 @@ function apply(ctx, config) {
|
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
|
-
const command = ctx.command("radar <name:string>", "查看雷达图").
|
|
346
|
+
const command = ctx.command("radar <name:string>", "查看雷达图").option("name", "--name <name:string> 雷达站名称").option("count", "-n <count:number> 最大输出数量").option("reverse", "-R 反转顺序").option("type", "--type <type:string> 输出类型", { type: Object.keys(resolvers) }).option("type", "--img 输出图片", { value: "img" }).option("type", "--url 输出 URL", { value: "url" }).action(async ({ session, options = {} }, name2) => {
|
|
347
347
|
options.name ??= name2;
|
|
348
348
|
if (!(name2 in radars_default))
|
|
349
349
|
return void session?.send(session.text(".messages.unknown"));
|