瀏覽代碼

feat: itchat login hot reload

zhayujie 3 年之前
父節點
當前提交
b3e1f56fb9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      channel/wechat/wechat_channel.py

+ 1 - 1
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()