Merge branch 'master' of github.com:yoimiya-kokomi/Miao-Yunzai
This commit is contained in:
commit
553dfda627
|
@ -0,0 +1,33 @@
|
||||||
|
const os = require("os");
|
||||||
|
const { existsSync } = require("fs");
|
||||||
|
const arch = os.arch();
|
||||||
|
let skipDownload = false;
|
||||||
|
let executablePath;
|
||||||
|
//win32 存在 Edge 优先选择
|
||||||
|
if (process.platform == "win32") {
|
||||||
|
if (
|
||||||
|
existsSync("C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe")
|
||||||
|
) {
|
||||||
|
skipDownload = true;
|
||||||
|
executablePath =
|
||||||
|
"C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe";
|
||||||
|
}
|
||||||
|
} else if (process.platform == "linux") {
|
||||||
|
//如果arm64架构跳过下载
|
||||||
|
if (arch == "arm64" || arch == "aarch64") {
|
||||||
|
skipDownload = true;
|
||||||
|
}
|
||||||
|
//不管什么架构,如果存在配置则跳过下载,且配置路径
|
||||||
|
if (existsSync("/usr/bin/chromium")) {
|
||||||
|
skipDownload = true;
|
||||||
|
executablePath = "/usr/bin/chromium";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {import("puppeteer").Configuration}
|
||||||
|
*/
|
||||||
|
module.exports = {
|
||||||
|
skipDownload,
|
||||||
|
executablePath,
|
||||||
|
};
|
|
@ -21,3 +21,6 @@ proxyAddress:
|
||||||
online_msg: true
|
online_msg: true
|
||||||
# 上线推送通知的冷却时间
|
# 上线推送通知的冷却时间
|
||||||
online_msg_exp: 86400
|
online_msg_exp: 86400
|
||||||
|
|
||||||
|
# 签名API地址
|
||||||
|
sign_api_addr:
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
qq:
|
qq:
|
||||||
# 密码,为空则用扫码登录,扫码登录现在仅能在同一ip下进行
|
# 密码,为空则用扫码登录,扫码登录现在仅能在同一ip下进行
|
||||||
pwd:
|
pwd:
|
||||||
# 1:安卓手机、 2:aPad 、 3:安卓手表、 4:MacOS 、 5:iPad 、 6:安卓8.8.88
|
# 1:安卓手机、 2:aPad 、 3:安卓手表、 4:MacOS 、 5:iPad 、 6:Tim
|
||||||
platform: 6
|
platform: 6
|
|
@ -31,7 +31,7 @@ async function UpdateTitle() {
|
||||||
title += ' iPad'
|
title += ' iPad'
|
||||||
break
|
break
|
||||||
case 6:
|
case 6:
|
||||||
title += ' 安卓8.8.88'
|
title += ' Tim'
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,10 +33,10 @@ export default async function createQQ () {
|
||||||
message: '请选择登录端口:',
|
message: '请选择登录端口:',
|
||||||
name: 'platform',
|
name: 'platform',
|
||||||
default: '6',
|
default: '6',
|
||||||
choices: ['安卓8.8.88', 'iPad', '安卓手机', '安卓手表', 'MacOS', 'aPad'],
|
choices: ['Tim', 'iPad', '安卓手机', '安卓手表', 'MacOS', 'aPad'],
|
||||||
filter: (val) => {
|
filter: (val) => {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case '安卓8.8.88':return 6
|
case 'Tim':return 6
|
||||||
case 'iPad':return 5
|
case 'iPad':return 5
|
||||||
case 'MacOS':return 4
|
case 'MacOS':return 4
|
||||||
case '安卓手机':return 1
|
case '安卓手机':return 1
|
||||||
|
|
|
@ -698,6 +698,7 @@ class PluginsLoader {
|
||||||
/** 判断黑白名单 */
|
/** 判断黑白名单 */
|
||||||
checkBlack (e) {
|
checkBlack (e) {
|
||||||
let other = cfg.getOther()
|
let other = cfg.getOther()
|
||||||
|
let notice = cfg.getNotice()
|
||||||
|
|
||||||
if (e.test) return true
|
if (e.test) return true
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@ class Command {
|
||||||
group_id: data.group_id || 826198224,
|
group_id: data.group_id || 826198224,
|
||||||
group_name: data.group_name || '测试群',
|
group_name: data.group_name || '测试群',
|
||||||
user_id: data.user_id,
|
user_id: data.user_id,
|
||||||
|
user_avatar:`https://q1.qlogo.cn/g?b=qq&s=0&nk=${data.user_id}`,
|
||||||
anonymous: null,
|
anonymous: null,
|
||||||
message: [{ type: 'text', text }],
|
message: [{ type: 'text', text }],
|
||||||
raw_message: text,
|
raw_message: text,
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"chalk": "^5.2.0",
|
"chalk": "^5.2.0",
|
||||||
"chokidar": "^3.5.3",
|
"chokidar": "^3.5.3",
|
||||||
"https-proxy-agent": "5.0.1",
|
"https-proxy-agent": "5.0.1",
|
||||||
"icqq": "^0.3.14",
|
"icqq": "^0.4.7",
|
||||||
"image-size": "^1.0.2",
|
"image-size": "^1.0.2",
|
||||||
"inquirer": "^8.2.5",
|
"inquirer": "^8.2.5",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
- from: '2023-06-28 12:00:00'
|
||||||
|
to: '2023-07-18 14:59:59'
|
||||||
|
five:
|
||||||
|
- 罗刹
|
||||||
|
four:
|
||||||
|
- 驭空
|
||||||
|
- 佩拉
|
||||||
|
- 青雀
|
||||||
|
name: 寻索世间
|
||||||
- from: '2023-06-07 11:00:00'
|
- from: '2023-06-07 11:00:00'
|
||||||
to: '2023-06-28 11:59:59'
|
to: '2023-06-28 11:59:59'
|
||||||
five:
|
five:
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
- from: '2023-06-28 12:00:00'
|
||||||
|
to: '2023-07-18 14:59:59'
|
||||||
|
five:
|
||||||
|
- 棺的回响
|
||||||
|
four:
|
||||||
|
- 晚安与睡颜
|
||||||
|
- 天才们的休憩
|
||||||
|
- 舞!舞!舞!
|
||||||
|
name: 流光定影
|
||||||
- from: '2023-06-07 11:00:00'
|
- from: '2023-06-07 11:00:00'
|
||||||
to: '2023-06-28 11:59:59'
|
to: '2023-06-28 11:59:59'
|
||||||
five:
|
five:
|
||||||
|
|
Loading…
Reference in New Issue