!61 修复配置文件notice不监听更改,同步Yunzai-Bot的PR!86,PR!88,星铁1.1下半卡池更新,icqq升级,配置文件新增签名API地址,协议6替换为Tim

* update lib/config/qq.js.
* update lib/config/init.js.
* update config/default_config/qq.yaml.
* update plugins/genshin/defSet/pool/12.yaml.
* update plugins/genshin/defSet/pool/11.yaml.
* 增加签名API地址配置
* 升级icqq版本
* add .puppeteerrc.cjs.
* update lib/tools/command.js.
* update lib/plugins/loader.js.
This commit is contained in:
touchscale 2023-06-28 20:21:48 +00:00 committed by Kokomi
parent 08da5dab3f
commit 86785d86f8
10 changed files with 61 additions and 5 deletions

33
.puppeteerrc.cjs Normal file
View File

@ -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,
};

View File

@ -21,3 +21,6 @@ proxyAddress:
online_msg: true online_msg: true
# 上线推送通知的冷却时间 # 上线推送通知的冷却时间
online_msg_exp: 86400 online_msg_exp: 86400
# 签名API地址
sign_api_addr:

View File

@ -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

View File

@ -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:
} }

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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",

View File

@ -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:

View File

@ -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: