koishi-plugin-wordle-game 2.7.1 → 2.7.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/README.md +11 -102
- package/lib/config.d.ts +1 -6
- package/lib/context.d.ts +0 -4
- package/lib/index.js +232 -1320
- package/lib/services/message.d.ts +1 -4
- package/lib/services/user.d.ts +1 -1
- package/lib/types.d.ts +0 -15
- package/lib/utils/string.d.ts +0 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,121 +1,30 @@
|
|
|
1
1
|
koishi-plugin-wordle-game
|
|
2
2
|
=========================
|
|
3
3
|
|
|
4
|
-
[<img alt="github" src="https://img.shields.io/badge/github-araea/
|
|
4
|
+
[<img alt="github" src="https://img.shields.io/badge/github-araea/koishi__plugin__wordle__game-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/araea/koishi-plugin-wordle-game)
|
|
5
5
|
[<img alt="npm" src="https://img.shields.io/npm/v/koishi-plugin-wordle-game.svg?style=for-the-badge&color=fc8d62&logo=npm" height="20">](https://www.npmjs.com/package/koishi-plugin-wordle-game)
|
|
6
6
|
|
|
7
|
-
Koishi
|
|
8
|
-
|
|
9
|
-
- [Wordle](https://www.nytimes.com/games/wordle/index.html)
|
|
10
|
-
- [汉兜](https://handle.antfu.me/)
|
|
11
|
-
- [词影](https://cy.surprising.studio/)
|
|
12
|
-
- [Numberle](https://dduarte.github.io/numberle/)
|
|
13
|
-
- [Math](https://numberle.org/)
|
|
14
|
-
- [Lewdle](https://www.lewdlegame.com/App)
|
|
7
|
+
Koishi 的多模式猜词游戏插件。
|
|
15
8
|
|
|
16
9
|
## 使用
|
|
17
10
|
|
|
18
|
-
|
|
19
|
-
2. 设置指令别名。
|
|
20
|
-
3. `wordleGame.开始` 引导开局,然后直接输入猜测词。
|
|
21
|
-
|
|
22
|
-
## 注意事项
|
|
23
|
-
|
|
24
|
-
- 成语报未知错误时,检查 `data/wordleGame/idioms.json` 的拼音。
|
|
25
|
-
- 汉兜遇到词库里没有的四字词,会走配置「拼音接口设置」里的 OpenAI 兼容接口;留空则不发请求,只提示手动补全。
|
|
26
|
-
- 词影模式有细分排行榜,`help` 可查。
|
|
27
|
-
- 可在 `idioms.json` 自行加词(如「原神启动」),注意 JSON 末项无逗号。
|
|
11
|
+
`wordleGame.开始` 开局,然后直接输入猜测词。
|
|
28
12
|
|
|
29
13
|
## 指令
|
|
30
14
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
可用模式:`经典`、`CET4/6`、`GMAT`、`GRE`、`IELTS`、`SAT`、`TOEFL`、`考研`、`专八/四`、`ALL`、`Lewdle`、`Numberle`、`Math`、`汉兜`、`词影`。
|
|
38
|
-
|
|
39
|
-
通用选项:
|
|
40
|
-
|
|
41
|
-
- `--hard` 困难:绿色线索保持固定,黄色线索必须再用。词影模式下提高匹配难度。
|
|
42
|
-
- `--uhard` 超困难:基于困难。黄色线索必须离位,灰色线索不得再用。
|
|
43
|
-
- `--absurd` 荒谬:尽量少给信息,甚至可能更换秘密词。[玩法参考](https://qntm.org/absurdle)
|
|
44
|
-
- `--challenge` 挑战:从一个给定目标词反向推导秘密词。[玩法参考](https://qntm.org/challenge)
|
|
45
|
-
- `--wordles <数量>` 同时猜多个词,默认 1 ~ 4,可配置。
|
|
46
|
-
|
|
47
|
-
汉兜与词影:
|
|
48
|
-
|
|
49
|
-
- `--free` 任意四字词都可作猜测。
|
|
50
|
-
- `--all` 词库扩到 29766+(含生僻字)。关掉时用 7208 个常用成语。
|
|
51
|
-
|
|
52
|
-
经典模式和汉兜模式可投入货币,获胜有奖励。多种难度可同时开。
|
|
53
|
-
|
|
54
|
-
### `wordleGame.猜 <猜测内容>`
|
|
55
|
-
|
|
56
|
-
猜单词、成语等。`-r` 随机猜一次。
|
|
57
|
-
|
|
58
|
-
## 示例
|
|
59
|
-
|
|
60
|
-
<!-- markdownlint-disable MD033 -->
|
|
61
|
-
<details>
|
|
62
|
-
<summary>点击展开/折叠</summary>
|
|
63
|
-
|
|
64
|
-
- **经典模式**
|
|
65
|
-

|
|
66
|
-
- **汉兜模式**
|
|
67
|
-

|
|
68
|
-
- **词影模式**
|
|
69
|
-

|
|
70
|
-

|
|
71
|
-
- **方程式模式**
|
|
72
|
-

|
|
73
|
-
- **游戏引导**
|
|
74
|
-

|
|
75
|
-
- **进度查询**
|
|
76
|
-

|
|
77
|
-
- **多开模式**
|
|
78
|
-

|
|
79
|
-
- **拼音速查**
|
|
80
|
-

|
|
81
|
-
- **查单词 (英译中/英译英)**
|
|
82
|
-

|
|
83
|
-

|
|
84
|
-
- **查成语**
|
|
85
|
-

|
|
86
|
-
- **玩家记录**
|
|
87
|
-

|
|
88
|
-
- **单词查找器**
|
|
89
|
-

|
|
90
|
-
- **排行榜**
|
|
91
|
-

|
|
92
|
-
|
|
93
|
-
</details>
|
|
94
|
-
<!-- markdownlint-enable MD033 -->
|
|
15
|
+
| 指令 | 说明 |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| `wordleGame.开始 [长度]` | 开始引导 |
|
|
18
|
+
| `wordleGame.开始.<模式> [长度]` | 指定模式开局 |
|
|
19
|
+
| `wordleGame.猜 <内容>` | 提交猜测 |
|
|
95
20
|
|
|
96
|
-
|
|
21
|
+
模式:`经典`、`汉兜`、`词影`、`Numberle`、`Math`、`Lewdle` 及多种词库。
|
|
97
22
|
|
|
98
|
-
|
|
99
|
-
- ly、麦神等朋友
|
|
100
|
-
- [Akisa](https://forum.koishi.xyz/u/akisa/summary)
|
|
101
|
-
- [汉典](https://www.zdic.net/)
|
|
102
|
-
- [百度汉语](https://hanyu.baidu.com/)
|
|
103
|
-
- [WordFinder](https://wordword.org/)
|
|
104
|
-
- [skywind3000/ECDICT](https://github.com/skywind3000/ECDICT)
|
|
105
|
-
- [Wordle](https://www.nytimes.com/games/wordle/index.html)
|
|
106
|
-
- [汉兜](https://handle.antfu.me/)
|
|
107
|
-
- [词影](https://cy.surprising.studio/)
|
|
108
|
-
- [Numberle (dduarte)](https://dduarte.github.io/numberle/)
|
|
109
|
-
- [Numberle (numberle.org)](https://numberle.org/)
|
|
110
|
-
- [LewdleGame](https://www.lewdlegame.com/App)
|
|
111
|
-
- [WordlePlay](https://wordleplay.com/wordle-games)
|
|
112
|
-
- [koishi-plugin-wordle](https://www.npmjs.com/package/koishi-plugin-wordle)
|
|
113
|
-
- [nonebot-plugin-wordle](https://github.com/noneplugin/nonebot-plugin-wordle)
|
|
114
|
-
- [Wordle 2315 words list](https://gist.github.com/DevilXD/6ad6cc1fe37872d069a795edd51233b2#file-wordle_words-txt)
|
|
23
|
+
选项:`--hard`、`--uhard`、`--absurd`、`--challenge`、`--wordles`、`--free`、`--all`。
|
|
115
24
|
|
|
116
25
|
## QQ 群
|
|
117
26
|
|
|
118
|
-
|
|
27
|
+
956758505
|
|
119
28
|
|
|
120
29
|
<br>
|
|
121
30
|
|
package/lib/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "koishi";
|
|
2
|
-
export declare const usage = "## \u4F7F\u7528\n\
|
|
2
|
+
export declare const usage = "## \u4F7F\u7528\n\n`wordleGame.\u5F00\u59CB` \u5F00\u5C40\uFF0C\u7136\u540E\u76F4\u63A5\u8F93\u5165\u731C\u6D4B\u8BCD\u3002\n\n## \u6307\u4EE4\n\n| \u6307\u4EE4 | \u8BF4\u660E |\n| --- | --- |\n| `wordleGame.\u5F00\u59CB [\u957F\u5EA6]` | \u5F00\u59CB\u5F15\u5BFC |\n| `wordleGame.\u5F00\u59CB.<\u6A21\u5F0F> [\u957F\u5EA6]` | \u6307\u5B9A\u6A21\u5F0F\u5F00\u5C40 |\n| `wordleGame.\u731C <\u5185\u5BB9>` | \u63D0\u4EA4\u731C\u6D4B |\n\n\u6A21\u5F0F\uFF1A`\u7ECF\u5178`\u3001`\u6C49\u515C`\u3001`\u8BCD\u5F71`\u3001`Numberle`\u3001`Math`\u3001`Lewdle` \u53CA\u591A\u79CD\u8BCD\u5E93\u3002\n\n\u9009\u9879\uFF1A`--hard`\u3001`--uhard`\u3001`--absurd`\u3001`--challenge`\u3001`--wordles`\u3001`--free`\u3001`--all`\u3002";
|
|
3
3
|
export interface Config {
|
|
4
4
|
isDarkThemeEnabled: boolean;
|
|
5
5
|
isHighContrastThemeEnabled: boolean;
|
|
@@ -20,11 +20,6 @@ export interface Config {
|
|
|
20
20
|
retractDelay: number;
|
|
21
21
|
imageType: "png" | "jpeg" | "webp";
|
|
22
22
|
isTextToImageConversionEnabled: boolean;
|
|
23
|
-
isEnableQQOfficialRobotMarkdownTemplate: boolean;
|
|
24
|
-
customTemplateId: string;
|
|
25
|
-
key: string;
|
|
26
|
-
numberOfMessageButtonsPerRow: number;
|
|
27
|
-
isUsingUnifiedKoishiBuiltInUsername: boolean;
|
|
28
23
|
pinyinApiEndpoint: string;
|
|
29
24
|
pinyinApiKey: string;
|
|
30
25
|
pinyinApiModel: string;
|
package/lib/context.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export interface GameContext {
|
|
|
5
5
|
ctx: Context;
|
|
6
6
|
config: Config;
|
|
7
7
|
logger: Logger;
|
|
8
|
-
isQQOfficialRobotMarkdownTemplateEnabled: boolean;
|
|
9
8
|
paths: {
|
|
10
9
|
wordleGameDir: string;
|
|
11
10
|
idioms: string;
|
|
@@ -27,7 +26,4 @@ export interface GameContext {
|
|
|
27
26
|
id: string;
|
|
28
27
|
timestamp: number;
|
|
29
28
|
}>;
|
|
30
|
-
msgSeqMap: {
|
|
31
|
-
[msgId: string]: number;
|
|
32
|
-
};
|
|
33
29
|
}
|