mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 05:17:10 +00:00
隐藏日志,修改 segment 导入 (#287)
This commit is contained in:
parent
6653188a8f
commit
00afb75bb5
4 changed files with 8 additions and 7 deletions
4
index.js
4
index.js
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue