koishi-plugin-ggcevo 1.1.4 → 1.1.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 +2 -6
- package/package.json +1 -1
- package/readme.md +9 -3
package/lib/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var Config = import_koishi.Schema.intersect([
|
|
|
40
40
|
mapMonitorRecommendMapName: import_koishi.Schema.string().description("当所有配置地图均离线时, 推荐玩家游玩的地图名称").default("")
|
|
41
41
|
}).description("地图检测"),
|
|
42
42
|
import_koishi.Schema.object({
|
|
43
|
-
curfewEnabled: import_koishi.Schema.boolean().description("是否启用宵禁(启用后每晚17点-24
|
|
43
|
+
curfewEnabled: import_koishi.Schema.boolean().description("是否启用宵禁(启用后每晚17点-24点禁止抽奖和挖矿, 签到不受限制)").default(false)
|
|
44
44
|
}).description("宵禁设置"),
|
|
45
45
|
import_koishi.Schema.object({
|
|
46
46
|
tencentDocsEnabled: import_koishi.Schema.boolean().description("是否启用腾讯文档功能").default(false),
|
|
@@ -321,9 +321,7 @@ function apply(ctx, config) {
|
|
|
321
321
|
if (!config.curfewEnabled) return null;
|
|
322
322
|
const hour = (/* @__PURE__ */ new Date()).getHours();
|
|
323
323
|
if (hour >= 17) {
|
|
324
|
-
if (type === "
|
|
325
|
-
return `🌙 宵禁时段(17:00-24:00),暂不能签到。`;
|
|
326
|
-
} else if (type === "lottery") {
|
|
324
|
+
if (type === "lottery") {
|
|
327
325
|
return `🌙 宵禁时段(17:00-24:00),暂不能抽奖。`;
|
|
328
326
|
} else {
|
|
329
327
|
return `🌙 宵禁时段(17:00-24:00),暂不能挖矿。`;
|
|
@@ -637,8 +635,6 @@ ${message}`;
|
|
|
637
635
|
});
|
|
638
636
|
ctx.command("ggcevo/签到").action(async (argv) => {
|
|
639
637
|
const session = argv.session;
|
|
640
|
-
const curfewMsg = checkCurfew("signin");
|
|
641
|
-
if (curfewMsg) return `<quote id="${session.messageId}"/>${curfewMsg}`;
|
|
642
638
|
const handle = await getHandle(session);
|
|
643
639
|
if (!handle) {
|
|
644
640
|
return `<quote id="${session.messageId}"/>🔒 需要先绑定游戏句柄。
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -33,9 +33,9 @@ npm install koishi-plugin-ggcevo
|
|
|
33
33
|
|
|
34
34
|
| 配置项 | 类型 | 默认值 | 说明 |
|
|
35
35
|
| --- | --- | --- | --- |
|
|
36
|
-
| `curfewEnabled` | `boolean` | `false` | 是否启用宵禁。启用后每晚 17:00-24:00
|
|
36
|
+
| `curfewEnabled` | `boolean` | `false` | 是否启用宵禁。启用后每晚 17:00-24:00 禁止抽奖和挖矿(签到不受宵禁限制) |
|
|
37
37
|
|
|
38
|
-
>
|
|
38
|
+
> 宵禁影响「咕咕之战」游戏模式下的玩法指令(抽奖、挖矿等)。后续新增的咕咕之战玩法指令均默认受宵禁影响。
|
|
39
39
|
|
|
40
40
|
**宵禁时段说明:**
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ npm install koishi-plugin-ggcevo
|
|
|
43
43
|
| --- | --- | --- | --- |
|
|
44
44
|
| 0:00-6:00 | ✅ 允许 | ✅ 允许 | ✅ 允许 |
|
|
45
45
|
| 6:00-17:00 | ✅ 允许 | ✅ 允许 | ✅ 允许 |
|
|
46
|
-
| 17:00-24:00 |
|
|
46
|
+
| 17:00-24:00 | ✅ 允许 | ❌ 禁止 | ❌ 禁止 |
|
|
47
47
|
|
|
48
48
|
### 腾讯文档(封禁记录查询)
|
|
49
49
|
|
|
@@ -163,6 +163,12 @@ npm install koishi-plugin-ggcevo
|
|
|
163
163
|
|
|
164
164
|
## 更新日志
|
|
165
165
|
|
|
166
|
+
### v1.1.5
|
|
167
|
+
|
|
168
|
+
签到取消宵禁限制。
|
|
169
|
+
|
|
170
|
+
- **签到不再受宵禁影响**:取消签到的宵禁限制,任意时段均可签到。宵禁(17:00-24:00)仅保留对抽奖和挖矿的限制。
|
|
171
|
+
|
|
166
172
|
### v1.1.4
|
|
167
173
|
|
|
168
174
|
宵禁时段统一,取消凌晨时段限制。
|