From b3e1f56fb94e5e885d092619ff6ef73207b78617 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Sun, 19 Mar 2023 01:09:36 +0800 Subject: [PATCH 1/2] feat: itchat login hot reload --- channel/wechat/wechat_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index d43a0a3..66979c2 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -42,7 +42,7 @@ class WechatChannel(Channel): def startup(self): # login by scan QRCode - itchat.auto_login(enableCmdQR=2) + itchat.auto_login(enableCmdQR=2, hotReload=True) # start message listener itchat.run() From d760b045d54e6b8c1f46e40ac37562c6ca22672b Mon Sep 17 00:00:00 2001 From: zhayujie Date: Sun, 19 Mar 2023 01:26:53 +0800 Subject: [PATCH 2/2] fix: close hot reload because of repeat msg --- channel/wechat/wechat_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index 66979c2..d43a0a3 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -42,7 +42,7 @@ class WechatChannel(Channel): def startup(self): # login by scan QRCode - itchat.auto_login(enableCmdQR=2, hotReload=True) + itchat.auto_login(enableCmdQR=2) # start message listener itchat.run()