mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 06:32:47 +00:00
parent
2397247c41
commit
7c8a840ac9
@ -102,13 +102,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "netease",
|
"name": "netease",
|
||||||
"version": "1.2",
|
"version": "1.3",
|
||||||
"section": "daily",
|
"section": "daily",
|
||||||
"maintainer": "xtaodada、KorenKrita",
|
"maintainer": "xtaodada、KorenKrita",
|
||||||
"size": "0.7 kb",
|
"size": "0.7 kb",
|
||||||
"supported": true,
|
"supported": true,
|
||||||
"des-short": "随机一条网易云音乐评论。",
|
"des-short": "随机一条网易云音乐热评。",
|
||||||
"des": "这个人很懒,什么都没有留下。"
|
"des": "大多数情况下稍等TG缓存片刻即可有歌曲在下方预览,若无则为该歌曲已被网易云下架。"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "atadmins_atall",
|
"name": "atadmins_atall",
|
||||||
@ -141,4 +141,4 @@
|
|||||||
"des": "非链接的纯文字将直接隐藏。"
|
"des": "非链接的纯文字将直接隐藏。"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,8 @@ async def netease(context):
|
|||||||
if req.status_code == 200:
|
if req.status_code == 200:
|
||||||
data = json.loads(req.text)
|
data = json.loads(req.text)
|
||||||
res = data['Comment'] + '\n\n来自 @' + data[
|
res = data['Comment'] + '\n\n来自 @' + data[
|
||||||
'UserName'] + ' 在鸽曲"<a href="http://music.163.com/song/media/outer/url?id=' + str(data['SongId']) + '.mp3">' + \
|
'UserName'] + ' 在鸽曲 <a href="http://music.163.com/song/media/outer/url?id=' + str(data['SongId']) + '.mp3">' + \
|
||||||
data['SongName'] + '</a>"-' + data['SongAutho'] + '</a>下方的评论'
|
data['SongName'] + ' --by' + data['SongAutho'] + '</a>' + ' 下方的评论\n\n该评论获得了' + str(data['likedCount']) + '个赞!'
|
||||||
await context.edit(res, parse_mode='html', link_preview=True)
|
await context.edit(res, parse_mode='html', link_preview=True)
|
||||||
else:
|
else:
|
||||||
await context.edit("出错了呜呜呜 ~ 无法访问到 API 服务器 。")
|
await context.edit("出错了呜呜呜 ~ 无法访问到 API 服务器 。")
|
||||||
|
Loading…
Reference in New Issue
Block a user