Add config UI and persistence to builtin plugin

Introduces a configuration UI schema and persistent config storage for the napcat-plugin-builtin. The plugin now loads and saves its configuration, supports dynamic prefix and reply toggling, and updates dependencies to napcat-types v0.0.6.
This commit is contained in:
手瓜一十雪
2026-01-28 14:13:48 +08:00
parent 89bac8f6e3
commit b7f54fafa2
10 changed files with 102 additions and 64 deletions

View File

@@ -1,7 +1,6 @@
import { Router } from 'express';
import {
GetPluginListHandler,
ReloadPluginHandler,
SetPluginStatusHandler,
UninstallPluginHandler,
GetPluginConfigHandler,
@@ -17,7 +16,6 @@ import {
const router: Router = Router();
router.get('/List', GetPluginListHandler);
router.post('/Reload', ReloadPluginHandler);
router.post('/SetStatus', SetPluginStatusHandler);
router.post('/Uninstall', UninstallPluginHandler);
router.get('/Config', GetPluginConfigHandler);