koishi-plugin-wordle-game 2.2.0 → 2.2.1
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 +7 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1731,9 +1731,13 @@ ${rankType.map((type, index) => `${index + 1}. ${type}`).join('\n')}
|
|
|
1731
1731
|
if (typeof number !== 'number' || isNaN(number) || number < 0) {
|
|
1732
1732
|
return '请输入大于等于 0 的数字作为排行榜的参数。';
|
|
1733
1733
|
}
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1734
|
+
let rankType3;
|
|
1735
|
+
if (type === '总') {
|
|
1736
|
+
rankType3 = ["胜场", "输场"];
|
|
1737
|
+
}
|
|
1738
|
+
else {
|
|
1739
|
+
rankType3 = ["胜场", "输场", "最快用时"];
|
|
1740
|
+
}
|
|
1737
1741
|
await sendMessage(session, `当前可查看排行榜如下:
|
|
1738
1742
|
${rankType3.map((type, index) => `${index + 1}. ${type}`).join('\n')}
|
|
1739
1743
|
请输入想要查看的【类型名】或【序号】:`);
|
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.1",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|