Fix log init

This commit is contained in:
Changhua
2023-04-04 12:51:14 +08:00
parent 891cada955
commit 057ccac7aa
2 changed files with 6 additions and 4 deletions

View File

@@ -5,7 +5,6 @@ import re
import time
import xml.etree.ElementTree as ET
import uvicorn
from wcferry import Wcf
from configuration import Config
@@ -19,9 +18,9 @@ class Robot(Job):
"""个性化自己的机器人
"""
def __init__(self, wcf: Wcf) -> None:
def __init__(self, config: Config, wcf: Wcf) -> None:
self.wcf = wcf
self.config = Config()
self.config = config
self.LOG = logging.getLogger("Robot")
self.wxid = self.wcf.get_self_wxid()
self.allContacts = self.getAllContacts()