feat: 适配 go-cqhttp 版 Yunzai [!5]

This commit is contained in:
RrOrange 2023-04-01 22:36:02 +08:00
parent c091b3a892
commit 7afd4a07ab
4 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,6 @@
import plugin from "../../../lib/plugins/plugin.js";
import axios from "axios";
import fs from "node:fs";
import { segment } from "oicq";
import {
checkMusic,
getCookies,

View File

@ -1,5 +1,4 @@
// 主库
import { segment } from "oicq";
import fetch from "node-fetch";
// 爬虫库
import puppeteer from "../../../lib/puppeteer/puppeteer.js";

View File

@ -1,7 +1,6 @@
// 主库
import fetch from "node-fetch";
import fs from "node:fs";
import { segment } from "oicq";
// 其他库
import axios from "axios";
import _ from "lodash";

View File

@ -1,5 +1,8 @@
import fs from "node:fs";
import RConfig from "./model/index.js";
if (!global.segment) {
global.segment = (await import("oicq")).segment
}
const versionData = RConfig.getConfig("version");