[fix] a bug

This commit is contained in:
xtao-dada 2022-03-05 16:32:12 +08:00
parent eee79c4599
commit 53f77db105
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -1,9 +1,14 @@
import logging
import threading
from pyrogram import idle
from ci import app as bot
from app import app
# 日志记录
logging.basicConfig(level=logging.INFO)
bot.start()
app.run("0.0.0.0", port=10111)
threading.Thread(target=app.run, kwargs={"host": "0.0.0.0", "port": "10111"}, daemon=True).start()
idle()
bot.stop()