Skip to content

Commit

Permalink
✨ 将ba帮助注册至GsCore帮助
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Sep 21, 2024
1 parent 076e88a commit 50606bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion BlueArchiveUID/bauid_help/__init__.py
Original file line number Diff line number Diff line change
@@ -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帮助')

Expand All @@ -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))
1 change: 1 addition & 0 deletions BlueArchiveUID/bauid_help/get_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
Binary file added ICON.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 50606bf

Please sign in to comment.