Skip to content

Commit 5227961

Browse files
committed
enhance: update version to 5.4.0 and add support for new features
1 parent 15e53e7 commit 5227961

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

doc/更新日志.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
V5.4.0
2+
更新时间 2025-7-10 15:27:42
3+
4+
* 支持 37051
5+
* 新增 GUI 和托盘
6+
7+
=================
18
V5.3.0
29
更新时间:2025-7-6 21:18:03
310

package-dist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"llonebot","version":"5.3.0","type":"module","description":"","main":"llonebot.js","author":"linyuchen"}
1+
{"name":"llonebot","version":"5.4.0","type":"module","description":"","main":"llonebot.js","author":"linyuchen"}

src/main/main.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,14 @@ async function onLoad() {
7878
const self = Object.assign(selfInfo, {
7979
uin: pmhqSelfInfo.uin,
8080
uid: pmhqSelfInfo.uid,
81+
nick: pmhqSelfInfo.nickName,
8182
online: true,
8283
})
83-
ctx.ntUserApi.getSelfNick().then(nick => {
84-
self.nick = nick
85-
}).catch(e=>ctx.logger.error('获取bot昵称失败', e))
84+
if (!self.nick) {
85+
ctx.ntUserApi.getSelfNick().then(nick => {
86+
self.nick = nick
87+
}).catch(e => ctx.logger.error('获取bot昵称失败', e))
88+
}
8689
// log('process pid', process.pid)
8790
const configUtil = getConfigUtil()
8891
const config = configUtil.getConfig()

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'fs'
22

3-
export const version = '5.3.0'
3+
export const version = '5.4.0'
44

55
export const writeVersion = ()=>{
66
const pkgJsonPath = './package-dist.json'

0 commit comments

Comments
 (0)