Skip to content

Commit

Permalink
✨ 新增我的背包
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Jun 10, 2024
1 parent f079984 commit 4c3f74c
Show file tree
Hide file tree
Showing 13 changed files with 6,005 additions and 4 deletions.
19 changes: 19 additions & 0 deletions GenshinUID/genshinuid_compute/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from gsuid_core.sv import SV
from gsuid_core.bot import Bot
from gsuid_core.models import Event
from gsuid_core.utils.error_reply import UID_HINT

from ..utils.convert import get_uid
from .get_my_pack import draw_my_pack

sv_pack = SV('查询背包')


@sv_pack.on_command(('我的背包'))
async def my_bag(bot: Bot, ev: Event):
uid, user_id = await get_uid(bot, ev, True)
if not uid:
return await bot.send(UID_HINT)

im = await draw_my_pack(uid, ev)
await bot.send(im)
Loading

0 comments on commit 4c3f74c

Please sign in to comment.