mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 13:34:08 +00:00
紧急bug修复
This commit is contained in:
parent
64739829bd
commit
ec5ecd172f
@ -282,10 +282,10 @@
|
||||
},
|
||||
{
|
||||
"name": "neteasemusic",
|
||||
"version": "1.1",
|
||||
"version": "1.2",
|
||||
"section": "daily",
|
||||
"maintainer": "TNTcraftHIM",
|
||||
"size": "9.9 kb",
|
||||
"size": "10.0 kb",
|
||||
"supported": true,
|
||||
"des-short": "网易云点歌",
|
||||
"des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。"
|
||||
|
@ -145,8 +145,11 @@ async def nem(context):
|
||||
f.write(music.content)
|
||||
if (path.getsize(name) / 1024) < 100:
|
||||
remove(name)
|
||||
try:
|
||||
if reply.sender.is_self:
|
||||
await reply.delete()
|
||||
except:
|
||||
pass
|
||||
await context.delete()
|
||||
res = '你可以点击<a href="https://music.163.com/#/song?id=' + \
|
||||
str(info['id']) + '">' + \
|
||||
@ -168,8 +171,11 @@ async def nem(context):
|
||||
caption=cap,
|
||||
link_preview=False,
|
||||
force_document=False)
|
||||
try:
|
||||
if reply.sender.is_self:
|
||||
await reply.delete()
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
remove(name)
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user