mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 10:02:23 +00:00
jd_cmd fix a bug
This commit is contained in:
parent
bbdc3ee077
commit
0fac77a774
@ -20,6 +20,6 @@ async def jd_cmd(context):
|
||||
return await context.edit("[jd_cmd] 未找到 JD 口令!")
|
||||
try:
|
||||
data = data["data"]
|
||||
await context.edit(f"[jd_cmd] [【{data['title']}】 - {data['userName']}]({data['jumpUrl']})")
|
||||
await context.edit(f"【jd_cmd】 [【{data['title']}】 - {data['userName']}]({data['jumpUrl']})")
|
||||
except KeyError:
|
||||
return await context.edit("[jd_cmd] 数据错误!")
|
||||
|
Loading…
Reference in New Issue
Block a user