test CQ music
This commit is contained in:
parent
998931557f
commit
ddff831ae0
1 changed files with 3 additions and 2 deletions
|
@ -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 = '什么东西坏掉了,大概是疼讯吧...不可能是咱!'
|
||||
|
|
Loading…
Reference in a new issue