Skip to content

Commit

Permalink
🎨 补充注册帮助时的前缀
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Oct 6, 2024
1 parent 85e2fbb commit 12113cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions GenshinUID/genshinuid_help/__init__.py
Original file line number Diff line number Diff line change
@@ -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帮助')


Expand All @@ -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))
1 change: 0 additions & 1 deletion GenshinUID/genshinuid_help/get_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,3 @@ async def get_core_help() -> Union[bytes, str]:
extra_message=[f'数据版本 {Genshin_version}'],
)
return img
return img

0 comments on commit 12113cd

Please sign in to comment.