mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
19 lines
635 B
TypeScript
19 lines
635 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 './QQBasicInfo'
|
|
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'
|
|
export { isQQ998 } from './QQBasicInfo' |