隐藏日志,修改 segment 导入 (#287)

This commit is contained in:
时雨◎星空 2023-03-26 21:28:14 +08:00 committed by GitHub
parent 6653188a8f
commit 00afb75bb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View file

@ -1,5 +1,9 @@
import fs from 'node:fs'
import {Config} from "./utils/config.js";
if (!global.segment) {
global.segment = (await import("oicq")).segment
}
const files = fs.readdirSync('./plugins/chatgpt-plugin/apps').filter(file => file.endsWith('.js'))