mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
18 lines
592 B
TypeScript
18 lines
592 B
TypeScript
import path from "node:path";
|
|
import fs from "fs";
|
|
|
|
export * from './file'
|
|
export * from './helper'
|
|
export * from './log'
|
|
export * from './qqlevel'
|
|
export * from './qqpkg'
|
|
export * from './upgrade'
|
|
export const DATA_DIR = global.LiteLoader.plugins["LLOneBot"].path.data;
|
|
export const TEMP_DIR = path.join(DATA_DIR, "temp");
|
|
export const PLUGIN_DIR = global.LiteLoader.plugins["LLOneBot"].path.plugin;
|
|
if (!fs.existsSync(TEMP_DIR)) {
|
|
fs.mkdirSync(TEMP_DIR, {recursive: true});
|
|
}
|
|
export {getVideoInfo} from "./video";
|
|
export {checkFfmpeg} from "./video";
|
|
export {encodeSilk} from "./audio"; |