update hhsh

This commit is contained in:
SiHuan 2020-08-04 21:48:48 +08:00
parent 2e31ec2cb1
commit b658029c84

View file

@ -10,9 +10,8 @@ class Ans(StdAns):
return "不许你们说咲夜!!"
msg = f"[CQ:reply,id={self.raw_msg['message_id']}]"
r = nbnhhsh(self.raw_msg['message'][6:])
for i in r:
msg += f"{i['name']} {str(i['trans'])[1:-1]}\n"
r = nbnhhsh(self.parms[1])
msg += f'''{(str(r['trans'])[1:-1]).replace("'","").replace(","," ")}'''
return msg
@ -24,4 +23,4 @@ def nbnhhsh(text):
}
r = requests.post(url=url, data=data).json()
return r
return r[0]