def __init__(self, queue, mutex):
super().__init__(queue, mutex)
self.itchat = itchat.new_instance()
itchat.set_logging(loggingLevel=logging.getLogger().level, showOnCmd=False)
self.itchat_msg_register()
with mutex:
self.itchat.auto_login(enableCmdQR=2,
hotReload=True,
statusStorageDir="storage/%s.pkl" % self.channel_id,
exitCallback=self.exit_callback,
qrCallback=self.console_qr_code)
mimetypes.init(files=["mimetypes"])
self.logger.info("EWS Inited!!!\n---")
#
# Utilities
#
评论列表
文章目录