koishi-plugin-cocoyyy-console 1.1.0-beta.8 → 1.1.0
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 -0
- package/package.json +1 -1
- package/readme.md +17 -1
package/lib/index.js
CHANGED
|
@@ -2224,9 +2224,11 @@ function registerGameCommands(ctx, game_config, ai_config) {
|
|
|
2224
2224
|
if (!dev_mode) {
|
|
2225
2225
|
if (!is_at_bot(session)) return;
|
|
2226
2226
|
}
|
|
2227
|
+
if (!is_gaming) return "未开始游戏";
|
|
2227
2228
|
if (is_thinking) return "正在思考,请耐心等待...";
|
|
2228
2229
|
try {
|
|
2229
2230
|
is_thinking = true;
|
|
2231
|
+
await session.send("正在结束游戏...");
|
|
2230
2232
|
const resp = await endSituationPuzzle(ai_config);
|
|
2231
2233
|
return checkResp(resp);
|
|
2232
2234
|
} finally {
|
|
@@ -2237,6 +2239,7 @@ function registerGameCommands(ctx, game_config, ai_config) {
|
|
|
2237
2239
|
if (!dev_mode) {
|
|
2238
2240
|
if (!is_at_bot(session)) return;
|
|
2239
2241
|
}
|
|
2242
|
+
if (!is_gaming) return "未开始游戏";
|
|
2240
2243
|
if (is_thinking) return "正在思考,请耐心等待...";
|
|
2241
2244
|
try {
|
|
2242
2245
|
is_thinking = true;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2,4 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/koishi-plugin-cocoyyy-console)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
个人使用,集成多个功能
|
|
6
|
+
|
|
7
|
+
## 主要功能
|
|
8
|
+
|
|
9
|
+
所有命令都需要@bot后使用,@bot help可看到具体功能和指令。
|
|
10
|
+
|
|
11
|
+
### 复读
|
|
12
|
+
|
|
13
|
+
群内有大于n条消息重复时,bot会自动复读,已判断个人发言的独立和超时重置判断
|
|
14
|
+
|
|
15
|
+
### 标签
|
|
16
|
+
|
|
17
|
+
通过指令添加标签,标签和黑历史图片信息存放在数据库,具体需要设置内配置。在使用获取命令时可以从已有黑历史随机抽取并输出。
|
|
18
|
+
|
|
19
|
+
### *人
|
|
20
|
+
|
|
21
|
+
每个群可以设置3个用户,每次有人@用户时,会从添加的语句中随机一条输出。
|