def auto_reply_map(msg):
try:
loc = msg["Content"].split(":")
if loc is not None:
loc = loc[0]
itchat.send_msg(msg="????????%s????" % loc, toUserName=msg['FromUserName'])
resp = api.ask(loc + "???")
if resp is not None:
itchat.send_msg(msg=resp['text'], toUserName=msg['FromUserName'])
else:
return "???????"
except Exception as e:
print(str(e))
评论列表
文章目录