@oebot/core
Version:
能跑就行的 QQ 机器人框架,基于 oicq v2,改自KiviBot(R.I.P.)
22 lines (21 loc) • 1.1 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PluginDataDir = exports.PluginDir = exports.LogDir = exports.OicqDataDir = exports.NodeModulesDir = exports.ConfigPath = exports.CWD = void 0;
const node_path_1 = __importDefault(require("node:path"));
/** node 当前执行路径 */
exports.CWD = process.cwd();
/** 配置文件路径 */
exports.ConfigPath = node_path_1.default.join(exports.CWD, 'config.json');
/** 框架 node_modules 路径 */
exports.NodeModulesDir = node_path_1.default.join(exports.CWD, 'node_modules');
/** oicq 数据目录 */
exports.OicqDataDir = node_path_1.default.join(exports.CWD, 'data/oicq');
/** logs 日志目录 */
exports.LogDir = node_path_1.default.join(exports.CWD, 'logs');
/** plugins 插件目录 */
exports.PluginDir = node_path_1.default.join(exports.CWD, 'plugins');
/** plugins 插件数据目录 */
exports.PluginDataDir = node_path_1.default.join(exports.CWD, 'data/plugins');