From 4952e495b22549c1447040e79d341ea7b390f0dc Mon Sep 17 00:00:00 2001 From: ChengxiX Date: Thu, 11 Feb 2021 13:11:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E6=9B=B4=E6=96=B0=E8=81=94?= =?UTF-8?q?=E7=B3=BB=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WechatBot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WechatBot.py b/WechatBot.py index 31bff57..d0462ab 100644 --- a/WechatBot.py +++ b/WechatBot.py @@ -377,10 +377,10 @@ def handle_response(data): file.close() scheduler = BackgroundScheduler() scheduler.add_job(save_status, 'interval', seconds=120) - scheduler.start() - spy = WeChatSpy(response_queue=my_response_queue, key=KEY, logger=logger) pid = spy.run(r"C:\Program Files (x86)\Tencent\WeChat\WeChat.exe") + scheduler.add_job(spy.get_contacts, 'interval', seconds=300) + scheduler.start() while True: data = my_response_queue.get() handle_response(data)