koishi-plugin-ggcevo-game 0.3.14 → 0.3.15
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 +1 -1
package/lib/index.js
CHANGED
|
@@ -432,7 +432,7 @@ ${itemDetails.join("\n")}`;
|
|
|
432
432
|
itemId: 1,
|
|
433
433
|
quantity: (backpack?.quantity || 0) + tickets
|
|
434
434
|
}]);
|
|
435
|
-
return `签到成功!连续签到 ${consecutiveDays} 天,获得 ${points}
|
|
435
|
+
return `签到成功!连续签到 ${consecutiveDays} 天,获得 ${points} 金币和 ${tickets} 枚咕咕币`;
|
|
436
436
|
} catch (error) {
|
|
437
437
|
console.error("查询房间命令时发生错误:", error);
|
|
438
438
|
return "服务器繁忙,请稍后尝试。";
|
|
@@ -455,7 +455,7 @@ ${itemDetails.join("\n")}`;
|
|
|
455
455
|
const nowChina = convertUTCtoChinaTime(/* @__PURE__ */ new Date());
|
|
456
456
|
if (targetDateChina >= nowChina) return "暂时没有可补签的日期。";
|
|
457
457
|
const costPoints = 100;
|
|
458
|
-
if (record.totalRewards < costPoints) return `补签需要消耗 ${costPoints}
|
|
458
|
+
if (record.totalRewards < costPoints) return `补签需要消耗 ${costPoints} 金币,当前金币不足。`;
|
|
459
459
|
const newConsecutiveDays = record.consecutiveDays + 1;
|
|
460
460
|
const cycle = Math.floor((newConsecutiveDays - 1) / 30);
|
|
461
461
|
const currentCycleDay = newConsecutiveDays - cycle * 30;
|
|
@@ -479,7 +479,7 @@ ${itemDetails.join("\n")}`;
|
|
|
479
479
|
await ctx.database.set("ggcevo_backpack", { handle, itemId: 1 }, {
|
|
480
480
|
quantity: (backpack?.quantity || 0) + tickets
|
|
481
481
|
});
|
|
482
|
-
return `补签成功!已为您补签 ${targetDateChina.toLocaleDateString("zh-CN")},连续签到 ${newConsecutiveDays} 天,消耗 ${costPoints}
|
|
482
|
+
return `补签成功!已为您补签 ${targetDateChina.toLocaleDateString("zh-CN")},连续签到 ${newConsecutiveDays} 天,消耗 ${costPoints} 金币,获得 ${points} 金币和 ${tickets} 枚咕咕币`;
|
|
483
483
|
} catch (error) {
|
|
484
484
|
console.error("补签错误:", error);
|
|
485
485
|
return "补签失败,请稍后重试。";
|
|
@@ -507,7 +507,7 @@ ${itemDetails.join("\n")}`;
|
|
|
507
507
|
`您的句柄:${handle}`,
|
|
508
508
|
`📅 最后签到时间:${chinaTime}`,
|
|
509
509
|
`🔥 连续签到:${record.consecutiveDays} 天`,
|
|
510
|
-
`💰 累计获得:${record.totalRewards}
|
|
510
|
+
`💰 累计获得:${record.totalRewards} 金币`
|
|
511
511
|
].join("\n");
|
|
512
512
|
});
|
|
513
513
|
ctx.guild().command("ggcevo/每月津贴").action(async (argv) => {
|