koishi-plugin-wordle-game 2.4.9 → 2.5.0

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -2369,9 +2369,10 @@ ${rankType3.map((type, index) => `${index + 1}. ${type}`).join('\n')}`}
2369
2369
  }
2370
2370
  async function getSessionUserName(session) {
2371
2371
  let sessionUserName = session.username;
2372
+ const user = session.user;
2372
2373
  if (isQQOfficialRobotMarkdownTemplateEnabled && session.platform === 'qq') {
2373
- if (config.isUsingUnifiedKoishiBuiltInUsername && session.user.name) {
2374
- sessionUserName = session.user.name;
2374
+ if (config.isUsingUnifiedKoishiBuiltInUsername && user.name) {
2375
+ sessionUserName = user.name;
2375
2376
  }
2376
2377
  else {
2377
2378
  let userRecord = await ctx.database.get('', { userId: session.userId });
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/) |... 猜单词|猜成语|猜数字|猜数学方程式|... 的小游戏,支持QQ官方MD模板,且包含多种词库、主题、游戏设置和排行榜系统等。",
4
- "version": "2.4.9",
4
+ "version": "2.5.0",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [