diff --git a/BlueArchiveUID/bauid_help/__init__.py b/BlueArchiveUID/bauid_help/__init__.py index 786c9f0..4ed945c 100644 --- a/BlueArchiveUID/bauid_help/__init__.py +++ b/BlueArchiveUID/bauid_help/__init__.py @@ -1,9 +1,11 @@ +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 .get_help import get_ba_core_help +from .get_help import ICON, get_ba_core_help sv_ba_help = SV('BA帮助') @@ -13,3 +15,6 @@ async def send_help_img(bot: Bot, ev: Event): logger.info('开始执行[ba帮助]') im = await get_ba_core_help() await bot.send(im) + + +register_help('BlueArchiveUID', 'ba帮助', Image.open(ICON)) diff --git a/BlueArchiveUID/bauid_help/get_help.py b/BlueArchiveUID/bauid_help/get_help.py index db1e222..7707971 100644 --- a/BlueArchiveUID/bauid_help/get_help.py +++ b/BlueArchiveUID/bauid_help/get_help.py @@ -10,6 +10,7 @@ from ..version import BlueArchiveUID_version +ICON = Path(__file__).parent.parent.parent / 'ICON.png' TEXT_PATH = Path(__file__).parent / 'texture2d' HELP_DATA = Path(__file__).parent / 'Help.json' diff --git a/ICON.png b/ICON.png new file mode 100644 index 0000000..102be94 Binary files /dev/null and b/ICON.png differ