koishi-plugin-ggcevo-game 1.0.3 → 1.0.5
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 +3 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -935,6 +935,7 @@ ID:${activity.id}
|
|
|
935
935
|
句柄:${user.handle}
|
|
936
936
|
当前积分:${user.rank}
|
|
937
937
|
参赛次数:${user.matches} 次
|
|
938
|
+
胜率: ${user.matches === 0 ? "0.00%" : (user.wins / user.matches * 100).toFixed(2) + "%"}
|
|
938
939
|
全服排名:第 ${userRank} 位
|
|
939
940
|
------------------------------`;
|
|
940
941
|
}
|
|
@@ -1257,7 +1258,7 @@ ${output}`;
|
|
|
1257
1258
|
return "操作失败,请稍后重试。错误详情已记录";
|
|
1258
1259
|
}
|
|
1259
1260
|
});
|
|
1260
|
-
ctx.command("
|
|
1261
|
+
ctx.command("ggcevo/成就").action(async ({ session }) => {
|
|
1261
1262
|
const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
|
|
1262
1263
|
if (!profile) {
|
|
1263
1264
|
return "您的 QQ 未绑定句柄。";
|
|
@@ -1281,7 +1282,7 @@ ${output}`;
|
|
|
1281
1282
|
return `${regionId}-S2-${realmId}-${profileId} 已获得的成就:
|
|
1282
1283
|
${achievementList.join("\n")}`;
|
|
1283
1284
|
});
|
|
1284
|
-
ctx.command("
|
|
1285
|
+
ctx.command("ggcevo/个人信息").action(async (argv) => {
|
|
1285
1286
|
const session = argv.session;
|
|
1286
1287
|
const output = [];
|
|
1287
1288
|
const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
|