修复hhsh!

This commit is contained in:
xmengnet 2021-06-24 15:26:25 +08:00
parent afaa5a2ba1
commit 7c2a44bb3f

View file

@ -1,6 +1,7 @@
from zzcore import StdAns, mysakuya from zzcore import StdAns, mysakuya
import requests import requests
class Ans(StdAns): class Ans(StdAns):
def GETMSG(self): def GETMSG(self):
if len(self.parms) < 2: if len(self.parms) < 2:
@ -11,7 +12,10 @@ class Ans(StdAns):
msg = f"[CQ:reply,id={self.raw_msg['message_id']}]" msg = f"[CQ:reply,id={self.raw_msg['message_id']}]"
r = nbnhhsh(self.parms[1]) r = nbnhhsh(self.parms[1])
msg += f'''{(str(r['trans'])[1:-1]).replace("'","").replace(","," ")}''' try:
msg += f'''{(str(r['trans'])[1:-1]).replace("'", "").replace(",", " ")}'''
except:
msg += "没查到("
return msg return msg