koishi-plugin-wordle-game 1.4.2 → 1.4.4
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 -2
- package/package.json +4 -1
package/lib/index.js
CHANGED
|
@@ -789,14 +789,14 @@ function apply(ctx, config) {
|
|
|
789
789
|
imageBuffers.push(imageBuffer);
|
|
790
790
|
// 更新游戏记录
|
|
791
791
|
const remainingGuessesCount = isAbsurd ? gameInfo.remainingGuessesCount : gameInfo.remainingGuessesCount - 1;
|
|
792
|
-
if (wordleIndex === 1) {
|
|
792
|
+
if (wordleIndex === 1 && !gameInfo.isWin) {
|
|
793
793
|
await ctx.database.set('wordle_game_records', { channelId }, {
|
|
794
794
|
isWin,
|
|
795
795
|
remainingGuessesCount: remainingGuessesCount,
|
|
796
796
|
wordGuessHtmlCache: `${gameInfo.wordGuessHtmlCache}${letterTilesHtml}\n`,
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
|
-
else {
|
|
799
|
+
else if (wordleIndex > 1 && !gameInfo.isWin) {
|
|
800
800
|
await ctx.database.set('extra_wordle_game_records', { channelId, wordleIndex }, {
|
|
801
801
|
isWin,
|
|
802
802
|
remainingGuessesCount: remainingGuessesCount,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-wordle-game",
|
|
3
3
|
"description": "欢迎来到 Wordle 猜单词小游戏,包含多种模式、多种词库、多种游戏设置和排行榜系统。",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.4",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -47,5 +47,8 @@
|
|
|
47
47
|
"koishi-plugin-markdown-to-image-service": "^1.1.3",
|
|
48
48
|
"koishi-plugin-monetary": "^0.1.3",
|
|
49
49
|
"koishi-plugin-puppeteer": "^3.7.3"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"cheerio": "^1.0.0-rc.12"
|
|
50
53
|
}
|
|
51
54
|
}
|