-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f079984
commit 4c3f74c
Showing
13 changed files
with
6,005 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.