mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
Merge remote-tracking branch 'origin/main'
# Conflicts: # src/onebot11/action/extends/GetFriendWithCategory.ts # src/onebot11/action/types.ts
This commit is contained in:
commit
a1baf2e32d
@ -6,6 +6,6 @@ QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
|
||||
* 重置Rkey获取机制,使用接口分发Rkey
|
||||
|
||||
## 新增与调整
|
||||
* 新增获取好友列表Api /get_friend_category
|
||||
* 新增扩展获取好友分类列表 Api /get_friend_with_category
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
|
15
src/common/utils/reboot.ts
Normal file
15
src/common/utils/reboot.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { exit } from "process";
|
||||
import { resolve } from "path";
|
||||
async function reboot() {
|
||||
let batScript = resolve(__dirname, './napcat.bat');
|
||||
let batUtf8Script = resolve(__dirname, './napcat-utf8.bat');
|
||||
let bashScript = resolve(__dirname, './napcat.sh');
|
||||
//如果是win系统写出 5s延迟启动 默认batUtf8Script启动
|
||||
// 如果是linux系统写出 5s延迟启动 默认bashScript启动
|
||||
if (process.platform === 'win32') {
|
||||
// console.log('正在重启...');
|
||||
} else if (process.platform === 'linux') {
|
||||
//console.log('正在重启...');
|
||||
}
|
||||
exit(0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user