koishi-plugin-wordle-game 2.0.9 → 2.1.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 +3 -2
- package/package.json +1 -1
- package/readme.md +4 -0
package/lib/index.js
CHANGED
|
@@ -887,7 +887,7 @@ async function apply(ctx, config) {
|
|
|
887
887
|
imageBuffer = await generateImageForCiying(emptyGridHtmlWithBorder + emptyGridHtml, 6 + wordlesNum - 1);
|
|
888
888
|
}
|
|
889
889
|
else {
|
|
890
|
-
const emptyGridHtml = isAbsurdMode ? generateEmptyGridHtml(1, guessWordLength) : exam === 'Math' ? generateEmptyGridHtml(6, guessWordLength) : generateEmptyGridHtml(guessWordLength + 1 + wordlesNum - 1, guessWordLength);
|
|
890
|
+
const emptyGridHtml = isAbsurdMode ? generateEmptyGridHtml(1, guessWordLength) : exam === 'Math' ? generateEmptyGridHtml(6 + wordlesNum - 1, guessWordLength) : generateEmptyGridHtml(guessWordLength + 1 + wordlesNum - 1, guessWordLength);
|
|
891
891
|
const styledHtml = generateStyledHtml(guessWordLength + 1);
|
|
892
892
|
imageBuffer = await generateImage(styledHtml, emptyGridHtml);
|
|
893
893
|
}
|
|
@@ -1894,7 +1894,8 @@ ${rankType3.map((type, index) => `${index + 1}. ${type}`).join('\n')}
|
|
|
1894
1894
|
async function processExtraGameRecords(channelId) {
|
|
1895
1895
|
const extraGameInfos = await ctx.database.get('extra_wordle_game_records', { channelId });
|
|
1896
1896
|
const resultStrings = extraGameInfos.map(info => {
|
|
1897
|
-
return `\n答案是:【${info.wordGuess}】${info.pinyin === '' ? '' : `\n拼音为:【${info.pinyin}】`}\n释义如下:\n${info.wordAnswerChineseDefinition}
|
|
1897
|
+
// return `\n答案是:【${info.wordGuess}】${info.pinyin === '' ? '' : `\n拼音为:【${info.pinyin}】`}\n释义如下:\n${info.wordAnswerChineseDefinition}`
|
|
1898
|
+
return `\n答案是:【${info.wordGuess}】${info.wordAnswerChineseDefinition !== '' ? `${info.pinyin === '' ? '' : `\n拼音为:【${info.pinyin}】`}\n释义如下:\n${replaceEscapeCharacters(info.wordAnswerChineseDefinition)}` : ''}`;
|
|
1898
1899
|
});
|
|
1899
1900
|
return resultStrings.join('\n');
|
|
1900
1901
|
}
|
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.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
package/readme.md
CHANGED
|
@@ -169,6 +169,10 @@ npm install koishi-plugin-wordle-game
|
|
|
169
169
|
### 汉兜模式
|
|
170
170
|

|
|
171
171
|
|
|
172
|
+
### 词影模式
|
|
173
|
+

|
|
174
|
+

|
|
175
|
+
|
|
172
176
|
### 方程式模式
|
|
173
177
|

|
|
174
178
|
|