koishi-plugin-roulettes 1.0.2 → 1.0.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 +4 -4
- package/package.json +2 -2
- package/readme.md +2 -2
package/lib/index.js
CHANGED
|
@@ -229,11 +229,11 @@ ID: ${group.id}
|
|
|
229
229
|
选项列表:
|
|
230
230
|
${data.items.map((item, index) => `${index + 1}. ${item}`).join("\n")}`;
|
|
231
231
|
});
|
|
232
|
-
ctx.command("roulette/轮盘组详情 <
|
|
233
|
-
if (!
|
|
234
|
-
const group = await ctx.model.get("roulette_groups", {
|
|
232
|
+
ctx.command("roulette/轮盘组详情 <id:number>", "查看轮盘组详情").action(async ({ session }, id) => {
|
|
233
|
+
if (!id) return "请输入轮盘组ID";
|
|
234
|
+
const group = await ctx.model.get("roulette_groups", { id });
|
|
235
235
|
if (!group || group.length === 0) {
|
|
236
|
-
return `轮盘组
|
|
236
|
+
return `轮盘组 ID ${id} 不存在`;
|
|
237
237
|
}
|
|
238
238
|
const data = group[0];
|
|
239
239
|
let roulettesInfo = "";
|
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/forgetmelodyXL/roulettes/issues"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://github.com/forgetmelodyXL/roulettes
|
|
13
|
-
"version": "1.0.
|
|
12
|
+
"homepage": "https://github.com/forgetmelodyXL/roulettes",
|
|
13
|
+
"version": "1.0.4",
|
|
14
14
|
"main": "lib/index.js",
|
|
15
15
|
"typings": "lib/index.d.ts",
|
|
16
16
|
"files": [
|
package/readme.md
CHANGED