2022-03-05 08:10:53 +00:00
|
|
|
import logging
|
2022-03-05 08:32:12 +00:00
|
|
|
import threading
|
|
|
|
|
|
|
|
from pyrogram import idle
|
|
|
|
|
2022-03-05 08:10:53 +00:00
|
|
|
from ci import app as bot
|
|
|
|
from app import app
|
|
|
|
|
|
|
|
# 日志记录
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
bot.start()
|
2022-03-05 08:32:12 +00:00
|
|
|
threading.Thread(target=app.run, kwargs={"host": "0.0.0.0", "port": "10111"}, daemon=True).start()
|
|
|
|
idle()
|
2022-03-05 08:10:53 +00:00
|
|
|
bot.stop()
|