Skip to content

Commit

Permalink
定时更新联系人
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengxiX committed Feb 11, 2021
1 parent 38c68da commit 4952e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WechatBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4952e49

Please sign in to comment.