mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: 适配 go-cqhttp 版 Yunzai [!5]
This commit is contained in:
parent
c091b3a892
commit
7afd4a07ab
@ -1,7 +1,6 @@
|
|||||||
import plugin from "../../../lib/plugins/plugin.js";
|
import plugin from "../../../lib/plugins/plugin.js";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import { segment } from "oicq";
|
|
||||||
import {
|
import {
|
||||||
checkMusic,
|
checkMusic,
|
||||||
getCookies,
|
getCookies,
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
// 主库
|
// 主库
|
||||||
import { segment } from "oicq";
|
|
||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
// 爬虫库
|
// 爬虫库
|
||||||
import puppeteer from "../../../lib/puppeteer/puppeteer.js";
|
import puppeteer from "../../../lib/puppeteer/puppeteer.js";
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
// 主库
|
// 主库
|
||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import { segment } from "oicq";
|
|
||||||
// 其他库
|
// 其他库
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
|
3
index.js
3
index.js
@ -1,5 +1,8 @@
|
|||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import RConfig from "./model/index.js";
|
import RConfig from "./model/index.js";
|
||||||
|
if (!global.segment) {
|
||||||
|
global.segment = (await import("oicq")).segment
|
||||||
|
}
|
||||||
|
|
||||||
const versionData = RConfig.getConfig("version");
|
const versionData = RConfig.getConfig("version");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user