koishi-plugin-ggcevo-game 1.2.35 → 1.2.36
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 +8 -7
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1094,7 +1094,7 @@ ${itemDetails.join("\n")}`;
|
|
|
1094
1094
|
`您的句柄:${handle}`,
|
|
1095
1095
|
`📅 最后签到时间:${chinaTime}`,
|
|
1096
1096
|
`🔥 累计签到:${record.monthlyDays}天`,
|
|
1097
|
-
`💰
|
|
1097
|
+
`💰 拥有金币:${record.totalRewards}枚金币`
|
|
1098
1098
|
].join("\n");
|
|
1099
1099
|
});
|
|
1100
1100
|
ctx.guild().command("ggcevo/每月津贴").action(async (argv) => {
|
|
@@ -1938,13 +1938,14 @@ ${output}`;
|
|
|
1938
1938
|
if (!handleRegex.test(handle)) {
|
|
1939
1939
|
return "句柄格式错误,请重新输入。";
|
|
1940
1940
|
}
|
|
1941
|
-
const existingEntries = await ctx.database.get("ggcevo_rank", { handle, Blacklist: true });
|
|
1941
|
+
const existingEntries = await ctx.database.get("ggcevo_rank", { handle, Blacklist: true, rankseason: config.rankseason });
|
|
1942
1942
|
if (existingEntries.length > 0) {
|
|
1943
1943
|
return `${handle}已被标记在咕咕胜点榜黑名单中。`;
|
|
1944
1944
|
}
|
|
1945
1945
|
await ctx.database.upsert("ggcevo_rank", [{
|
|
1946
1946
|
handle,
|
|
1947
|
-
Blacklist: true
|
|
1947
|
+
Blacklist: true,
|
|
1948
|
+
rankseason: config.rankseason
|
|
1948
1949
|
}]);
|
|
1949
1950
|
return `✅ 用户${handle}已被标记在咕咕胜点榜黑名单。`;
|
|
1950
1951
|
} catch (error) {
|
|
@@ -2000,7 +2001,7 @@ ${achievementList.join("\n")}`;
|
|
|
2000
2001
|
"📅 签到记录:",
|
|
2001
2002
|
`最后签到:${chinaTime}`,
|
|
2002
2003
|
`本月累计:${sign.monthlyDays} 天`,
|
|
2003
|
-
|
|
2004
|
+
`拥有金币:${sign.totalRewards} 枚`,
|
|
2004
2005
|
"──────────────"
|
|
2005
2006
|
);
|
|
2006
2007
|
}
|
|
@@ -2193,8 +2194,8 @@ ${achievementList.join("\n")}`;
|
|
|
2193
2194
|
}
|
|
2194
2195
|
}
|
|
2195
2196
|
const [initiatorData, targetData] = await Promise.all([
|
|
2196
|
-
ctx.database.get("ggcevo_rank", initiatorHandle),
|
|
2197
|
-
ctx.database.get("ggcevo_rank", targetHandle)
|
|
2197
|
+
ctx.database.get("ggcevo_rank", { handle: initiatorHandle, rankseason: config.rankseason }),
|
|
2198
|
+
ctx.database.get("ggcevo_rank", { handle: targetHandle, rankseason: config.rankseason })
|
|
2198
2199
|
]);
|
|
2199
2200
|
const initiatorRank = initiatorData[0]?.rank || 0;
|
|
2200
2201
|
const targetRank = targetData[0]?.rank || 0;
|
|
@@ -2451,7 +2452,7 @@ ${validTypes.join("、")}`;
|
|
|
2451
2452
|
ctx.command("ggcevo/装备 <weapon>").action(async ({ session }, weapon) => {
|
|
2452
2453
|
const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
|
|
2453
2454
|
if (!profile) return "未绑定句柄";
|
|
2454
|
-
if (!weaponConfig[weapon]) return "
|
|
2455
|
+
if (!weaponConfig[weapon]) return "请输入“装备 武器名称”来装备一把你拥有的武器。";
|
|
2455
2456
|
const config2 = weaponConfig[weapon];
|
|
2456
2457
|
const handle = `${profile.regionId}-S2-${profile.realmId}-${profile.profileId}`;
|
|
2457
2458
|
const [owned] = await ctx.database.get("ggcevo_equipment", {
|