test CQ music

This commit is contained in:
SiHuan 2020-08-23 04:10:37 +08:00 committed by GitHub
parent a4ea487c8e
commit aaa93d3afe

View file

@ -30,8 +30,9 @@ class Ans(StdAns):
if resp['data']['song']['totalnum'] == 0:
return '啊嘞嘞好像没有诶qaq'
mid = resp['data']['song']['list'][0]['mid']
mname = resp['data']['song']['list'][0]['name']
msg = '[CQ:share,url=https://y.qq.com/n/yqq/song/' + str(mid) + '.html,title=' + str(mname) + ']'
msg = f'[CQ:music,type=qq,id={mid}]'
# mname = resp['data']['song']['list'][0]['name']
# msg = '[CQ:share,url=https://y.qq.com/n/yqq/song/' + str(mid) + '.html,title=' + str(mname) + ']'
except Exception as e:
print(e)
msg = '什么东西坏掉了,大概是疼讯吧...不可能是咱!'