koishi-plugin-game-mini 0.1.2 → 0.1.3

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 CHANGED
@@ -141,15 +141,8 @@ function apply(ctx, config) {
141
141
  state.started = true;
142
142
  state.botGuess = [];
143
143
  guessNumberStates.set(key, state);
144
- let msg = session.text('guessNumber.start', [config.guessNumber.min, config.guessNumber.max]);
145
- const isPrivate = !session.channelId;
146
- const botPlay = isPrivate || config.guessNumber.botParticipateInGroup;
147
- if (botPlay) {
148
- const first = koishi_1.Random.int(state.currentMin, state.currentMax);
149
- state.botGuess.push(first);
150
- guessNumberStates.set(key, state);
151
- msg += session.text('guessNumber.botFirstGuess', [first]);
152
- }
144
+ // 移除启动时Bot先猜数的逻辑,仅提示游戏开始
145
+ const msg = session.text('guessNumber.start', [config.guessNumber.min, config.guessNumber.max]);
153
146
  await session.send(msg);
154
147
  return '';
155
148
  }
@@ -6,7 +6,6 @@ guessNumber:
6
6
  tooSmall: 猜小啦!当前范围更新为 [{0}-{1}]
7
7
  tooBig: 猜大啦!当前范围更新为 [{0}-{1}]
8
8
  correct: 恭喜你猜中了!正确数字就是 {0} 🎉
9
- botFirstGuess: 我先来猜一个:{0},该你啦~
10
9
  botWin: 哈哈我猜中了!我猜的是 {0},正确数字就是 {0},我赢啦 🎉
11
10
  botGuessTooSmall: 我猜 {0},猜小啦!当前范围 [{1}-{2}]
12
11
  botGuessTooBig: 我猜 {0},猜大啦!当前范围 [{1}-{2}]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-game-mini",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "一款简单的猜数字小游戏,支持Bot参与",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",