加入群昵称
This commit is contained in:
9
main.py
9
main.py
@@ -2,10 +2,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import logging
|
||||
import threading
|
||||
import time
|
||||
from argparse import ArgumentParser
|
||||
from gewechat_client import GewechatClient
|
||||
import urllib.parse
|
||||
from configuration import Config
|
||||
from constants import ChatType
|
||||
from gewechat.api.start_server import start_fastapi_server
|
||||
@@ -69,11 +66,7 @@ def main(chat_type: int):
|
||||
robot.LOG.info(f"Dashboard服务器已在 http://{dashboard_server.host}:{dashboard_server.port} 启动")
|
||||
except Exception as e:
|
||||
robot.LOG.error(f"Dashboard服务器启动失败: {e}")
|
||||
# try:
|
||||
# time.sleep(10)
|
||||
# gewe_client.client_set_callback()
|
||||
# except Exception as e:
|
||||
# robot.LOG.error(f"client_set_callback error: {e}")
|
||||
|
||||
# 让机器人一直跑
|
||||
robot.keep_running_and_block_process()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user