修复hhsh!
This commit is contained in:
parent
afaa5a2ba1
commit
7c2a44bb3f
1 changed files with 6 additions and 2 deletions
|
@ -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,8 +12,11 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue