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