1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-11 21:50:29 +08:00

add missing defs

This commit is contained in:
源文雨
2023-10-16 22:56:51 +09:00
parent 5314405eeb
commit 1315cd67a4
2 changed files with 10 additions and 2 deletions

View File

@@ -12,6 +12,14 @@ import (
"github.com/sirupsen/logrus"
)
const (
// StorageFolder 插件控制数据目录
StorageFolder = "data/control/"
// Md5File ...
Md5File = StorageFolder + "stor.spb"
dbfile = StorageFolder + "plugins.db"
)
type Manager ctrl.Manager[*Ctx]
var (
@@ -19,7 +27,7 @@ var (
priomap = make(map[int]string) // priomap is map[prio]service
foldermap = make(map[string]string) // foldermap is map[folder]service
prio uint64
m = ctrl.NewManager[*Ctx]("data/control/plugins.db")
m = ctrl.NewManager[*Ctx](dbfile)
)
// Register 注册插件控制器