mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-19 19:20:03 +08:00
feat✨: 添加词条word_bank
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from pathlib import Path
|
||||
|
||||
import nonebot
|
||||
|
||||
from zhenxun.configs.config import Config
|
||||
|
||||
Config.add_plugin_config(
|
||||
"word_bank",
|
||||
"WORD_BANK_LEVEL",
|
||||
5,
|
||||
help="设置增删词库的权限等级",
|
||||
default_value=5,
|
||||
type=int,
|
||||
)
|
||||
Config.set_name("word_bank", "词库问答")
|
||||
|
||||
|
||||
nonebot.load_plugins(str(Path(__file__).parent.resolve()))
|
||||
Reference in New Issue
Block a user