diff --git a/README.md b/README.md index ee059c6d..ba9ac043 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,14 @@ NapCatQQ 是基于NTQQ本体实现一套 Bot 框架。 -名字寓意 瞌睡猫QQ ,但是不准叫NCQQ!,像睡着了一样在后台低占用运行的无需GUI界面的NTQQ。 +名字寓意 瞌睡猫QQ (不准叫我 NCQQ!),像睡着了一样在后台低占用运行的无需GUI界面的NTQQ。 ## 使用教程 可前往 Release 页面下载最新版本 +如果你想体验最新的功能,可以到 [Actions](https://github.com/NapNeko/NapCatQQ/actions/workflows/build.yml) 下载开发版本,但不保证其稳定性 + ### Windows 启动 运行`powershell ./napcat.ps1`, 或者 `napcat.bat`,如果出现乱码,可以尝试运行`napcat-utf8.ps1` 或 `napcat-utf8.bat` diff --git a/script/checkVersion.cjs b/script/checkVersion.cjs index 2cf13cc1..6c0a365d 100644 --- a/script/checkVersion.cjs +++ b/script/checkVersion.cjs @@ -9,5 +9,5 @@ if (currentVersion === targetVersion) { fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\necho \"CheckVersion Is Done\"") } else { let runscript = "sed -i 's/\"version\": \"" + currentVersion + "\"/\"version\": \"" + targetVersion + "\"/g' package.json"; - fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\ngit config --global user.email \"bot@test.nanaeo.cn\"\n git config --global user.name \"Version\"\n" + runscript + "\ngit add .\n git commit -m \"chore:version change\"\n git push -u origin main") + fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\ngit config --global user.email \"bot@test.wumiao.wang\"\n git config --global user.name \"Version\"\n" + runscript + "\ngit add .\n git commit -m \"chore:version change\"\n git push -u origin main") } diff --git a/src/common/server/http.ts b/src/common/server/http.ts index 5f2371f5..83a4ea6f 100644 --- a/src/common/server/http.ts +++ b/src/common/server/http.ts @@ -7,7 +7,7 @@ import { ob11Config } from '@/onebot11/config'; type RegisterHandler = (res: Response, payload: any) => Promise export abstract class HttpServerBase { - name: string = 'LLOneBot'; + name: string = 'NapCatQQ'; private readonly expressAPP: Express; private server: http.Server | null = null; diff --git a/src/core b/src/core index 0bb685e6..3544891d 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit 0bb685e6e138f3470521e2ee1bd3055b7f0e4dae +Subproject commit 3544891db76a48f21e378e2d431107d349ca545b diff --git a/src/onebot11/action/group/GetGroupEssence.ts b/src/onebot11/action/group/GetGroupEssence.ts index 4ffb2347..3f0bc9dd 100644 --- a/src/onebot11/action/group/GetGroupEssence.ts +++ b/src/onebot11/action/group/GetGroupEssence.ts @@ -12,13 +12,13 @@ interface PayloadType { } export class GetGroupEssence extends BaseAction { - actionName = ActionName.GoCQHTTP_GetEssenceMsg; + actionName = ActionName.GoCQHTTP_GetEssenceMsg; - protected async _handle(payload: PayloadType) { - let ret = await WebApi.getGroupEssenceMsg(payload.group_id.toString(), payload.pages.toString()); - if (!ret) { - throw new Error('获取失败'); - } - return ret; + protected async _handle(payload: PayloadType) { + const ret = await WebApi.getGroupEssenceMsg(payload.group_id.toString(), payload.pages.toString()); + if (!ret) { + throw new Error('获取失败'); } + return ret; + } } diff --git a/src/onebot11/action/group/GetGroupNotice.ts b/src/onebot11/action/group/GetGroupNotice.ts index a0410881..8e8797ce 100644 --- a/src/onebot11/action/group/GetGroupNotice.ts +++ b/src/onebot11/action/group/GetGroupNotice.ts @@ -7,14 +7,14 @@ interface PayloadType { } export class GetGroupNotice extends BaseAction { - actionName = ActionName.GoCQHTTP_GetGroupNotice; + actionName = ActionName.GoCQHTTP_GetGroupNotice; - protected async _handle(payload: PayloadType) { - const group = payload.group_id.toString(); - let ret = await WebApi.getGrouptNotice(group); - if (!ret) { - throw new Error('获取公告失败'); - } - return ret; + protected async _handle(payload: PayloadType) { + const group = payload.group_id.toString(); + const ret = await WebApi.getGrouptNotice(group); + if (!ret) { + throw new Error('获取公告失败'); } + return ret; + } } \ No newline at end of file