网易云布局调整&内容add (#1)

This commit is contained in:
KorenKrita 2020-08-12 03:16:38 +08:00 committed by GitHub
parent 91bb890de9
commit 0792aab1b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ async def netease(context):
data = json.loads(req.text)
res = data['Comment'] + '\n\n来自 @' + data[
'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>' + '</a>下方的评论\n\n该评论获得了' + str(data['likedCount']) + '个赞!'
await context.edit(res, parse_mode='html', link_preview=True)
else:
await context.edit("出错了呜呜呜 ~ 无法访问到 API 服务器 。")