Skip to content

Commit

Permalink
🐛 重复注册插件帮助
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Feb 12, 2025
1 parent 819888d commit d10d5c8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions gsuid_core/help/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def register_help(
):
if icon is None:
icon = Image.open(ICON)
plugins_help['插件帮助一览']['data'].append(
{
"name": name,
"desc": f"{name}插件帮助功能",
"eg": f'发送 {help} 获得帮助',
"icon": icon,
"need_ck": False,
"need_sk": False,
"need_admin": False,
}
)
plugin_help = {
"name": name,
"desc": f"{name}插件帮助功能",
"eg": f'发送 {help} 获得帮助',
"icon": icon,
"need_ck": False,
"need_sk": False,
"need_admin": False,
}
if plugin_help not in plugins_help['插件帮助一览']['data']:
plugins_help['插件帮助一览']['data'].append(plugin_help)

0 comments on commit d10d5c8

Please sign in to comment.