diff --git a/GenshinUID/genshinuid_help/__init__.py b/GenshinUID/genshinuid_help/__init__.py index 158b80e0..38f3735c 100644 --- a/GenshinUID/genshinuid_help/__init__.py +++ b/GenshinUID/genshinuid_help/__init__.py @@ -1,12 +1,14 @@ from PIL import Image -from gsuid_core.sv import SV from gsuid_core.bot import Bot from gsuid_core.models import Event from gsuid_core.logger import logger from gsuid_core.help.utils import register_help +from gsuid_core.sv import SV, get_plugin_available_prefix from .get_help import ICON, get_core_help +PREFIX = get_plugin_available_prefix('GenshinUID') + sv_gs_help = SV('gs帮助') @@ -17,4 +19,4 @@ async def send_help_img(bot: Bot, ev: Event): await bot.send(im) -register_help('GenshinUID', 'gs帮助', Image.open(ICON)) +register_help('GenshinUID', f'{PREFIX}帮助', Image.open(ICON)) diff --git a/GenshinUID/genshinuid_help/get_help.py b/GenshinUID/genshinuid_help/get_help.py index 2e4d7d8d..c7636449 100644 --- a/GenshinUID/genshinuid_help/get_help.py +++ b/GenshinUID/genshinuid_help/get_help.py @@ -75,4 +75,3 @@ async def get_core_help() -> Union[bytes, str]: extra_message=[f'数据版本 {Genshin_version}'], ) return img - return img