koishi-plugin-wordle-game 2.2.4 → 2.2.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 +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1880,7 +1880,7 @@ ${rankType3.map((type, index) => `${index + 1}. ${type}`).join('\n')}
|
|
|
1880
1880
|
if (typeof options.wordles !== 'number' || options.wordles < 1 || options.wordles > 4) {
|
|
1881
1881
|
return await sendMessage(session, `【@${username}】\n词影可查看的多猜测排行榜应在 1 ~ 4 之间!`);
|
|
1882
1882
|
}
|
|
1883
|
-
return await
|
|
1883
|
+
return await getWinCountLeaderboardForCiying(session, options.wordles, `玩家胜场排行榜(词影 x${options.wordles}${options.hard && options.wordles === 1 ? '(困难)' : ''})`, number, options.hard);
|
|
1884
1884
|
}
|
|
1885
1885
|
return await sendMessage(session, await getLeaderboardWinOrLose(type, number, 'win', '胜场'));
|
|
1886
1886
|
});
|
|
@@ -1901,7 +1901,7 @@ ${rankType3.map((type, index) => `${index + 1}. ${type}`).join('\n')}
|
|
|
1901
1901
|
if (typeof options.wordles !== 'number' || options.wordles < 1 || options.wordles > 4) {
|
|
1902
1902
|
return await sendMessage(session, `【@${username}】\n词影可查看的多猜测排行榜应在 1 ~ 4 之间!`);
|
|
1903
1903
|
}
|
|
1904
|
-
return await
|
|
1904
|
+
return await getLoseCountLeaderboardForCiying(session, options.wordles, `玩家输场排行榜(词影 x${options.wordles}${options.hard && options.wordles === 1 ? '(困难)' : ''})`, number, options.hard);
|
|
1905
1905
|
}
|
|
1906
1906
|
return await sendMessage(session, await getLeaderboardWinOrLose(type, number, 'lose', '输场'));
|
|
1907
1907
|
});
|
|
@@ -1987,7 +1987,7 @@ ${rankType3.map((type, index) => `${index + 1}. ${type}`).join('\n')}
|
|
|
1987
1987
|
const topPlayers = sortedPlayers.slice(0, number);
|
|
1988
1988
|
result = `${title}:\n`;
|
|
1989
1989
|
topPlayers.forEach((player, index) => {
|
|
1990
|
-
result += `${index + 1}. ${player.username}:${player.extraCiyingRankInfo[fastestGuessTimeField]}
|
|
1990
|
+
result += `${index + 1}. ${player.username}:${formatGameDuration2(player.extraCiyingRankInfo[fastestGuessTimeField])}\n`;
|
|
1991
1991
|
});
|
|
1992
1992
|
return await sendMessage(session, result);
|
|
1993
1993
|
}
|
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/) |... 猜单词|猜成语|猜数字|猜数学方程式|... 的小游戏,包含多种词库、多种主题、多种游戏设置和排行榜系统。",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.5",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|