koishi-plugin-wordle-game 2.4.1 → 2.4.2
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 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1562,11 +1562,13 @@ ${settlementResult}
|
|
|
1562
1562
|
userId = match?.[1] ?? userId;
|
|
1563
1563
|
username = match?.[2] ?? username;
|
|
1564
1564
|
targetUserRecord = await ctx.database.get('wordle_player_records', { userId });
|
|
1565
|
+
if (targetUserRecord.length === 0) {
|
|
1566
|
+
targetUserRecord = await ctx.database.get('wordle_player_records', { userId: targetUser });
|
|
1567
|
+
}
|
|
1565
1568
|
}
|
|
1566
1569
|
}
|
|
1567
1570
|
if (targetUserRecord.length === 0) {
|
|
1568
|
-
|
|
1569
|
-
return sendMessage(session, `查询对象:${username} 无任何游戏记录。`, `改名 查询玩家记录 开始游戏`, 2);
|
|
1571
|
+
return sendMessage(session, `被查询对象无任何游戏记录。`, `改名 查询玩家记录 开始游戏`, 2);
|
|
1570
1572
|
}
|
|
1571
1573
|
const { win, lose, moneyChange, wordGuessCount, stats, fastestGuessTime } = targetUserRecord[0];
|
|
1572
1574
|
const queryInfo = `【@${sessionUserName}】
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-wordle-game",
|
|
3
3
|
"description": "欢迎来到 [Wordle](https://www.nytimes.com/games/wordle/index.html) | [汉兜](https://handle.antfu.me/) | [词影](https://cy.surprising.studio/) |... 猜单词|猜成语|猜数字|猜数学方程式|... 的小游戏,支持QQ官方MD模板,且包含多种词库、主题、游戏设置和排行榜系统等。",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.2",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|