mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-03 02:30:01 +08:00
✨ 插件配置新增is_show控制是否显示在菜单中 (#1749)
This commit is contained in:
@@ -29,6 +29,7 @@ __plugin_meta__ = PluginMetadata(
|
||||
author="HibiKier",
|
||||
version="0.1",
|
||||
plugin_type=PluginType.DEPENDANT,
|
||||
is_show=False,
|
||||
configs=[
|
||||
RegisterConfig(
|
||||
key="type",
|
||||
|
||||
@@ -13,6 +13,7 @@ async def sort_type() -> dict[str, list[PluginInfo]]:
|
||||
menu_type__not="",
|
||||
load_status=True,
|
||||
plugin_type__in=[PluginType.NORMAL, PluginType.DEPENDANT],
|
||||
is_show=True,
|
||||
)
|
||||
sort_data = {}
|
||||
for plugin in data:
|
||||
|
||||
Reference in New Issue
Block a user