UNPKG

@oebot/core

Version:

能跑就行的 QQ 机器人框架,基于 oicq v2,改自KiviBot(R.I.P.)

12 lines (11 loc) 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPluginPathByName = void 0; const getPluginNameByPath_1 = require("./getPluginNameByPath"); const searchPlugins_1 = require("./searchPlugins"); /** 通过插件名定位插件路径的函数 */ async function getPluginPathByName(pluginName) { const { plugins } = await (0, searchPlugins_1.searchAllPlugins)(); return plugins.find((p) => (0, getPluginNameByPath_1.getPluginNameByPath)(p) === pluginName); } exports.getPluginPathByName = getPluginPathByName;