UNPKG

@nonebot/koishi-plugin-analysis-bilibili

Version:
17 lines (16 loc) 857 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.apply = exports.Config = exports.using = exports.name = void 0; const koishi_1 = require("koishi"); const path_1 = require("path"); exports.name = 'analysis-bilibili'; exports.using = ['nonebot']; exports.Config = koishi_1.Schema.object({ analysis_blacklist: koishi_1.Schema.array(Number).default([]).description('不解析里面填写的 QQ 号发的链接。'), analysis_display_image: koishi_1.Schema.boolean().default(false).description('是否显示封面。'), }); async function apply(ctx, config) { await ctx.nonebot.install((0, path_1.resolve)(__dirname, '../dist')); await ctx.nonebot.import((0, path_1.resolve)(__dirname, '../nonebot_plugin_analysis_bilibili/nonebot_plugin_analysis_bilibili'), config); } exports.apply = apply;