🔧 修复 apps 导入问题

This commit is contained in:
洛水居室 2022-08-05 19:24:20 +08:00
parent 9327e69f9d
commit 5f533a29b8
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -4,11 +4,11 @@ from warnings import filterwarnings
import pytz
from telegram.ext import Application, Defaults
from telegram.warnings import PTBUserWarning
from utils.app.manager import AppsManager
from config import config
from logger import Log
from utils.aiobrowser import AioBrowser
from utils.app.manager import AppsManager
from utils.job.register import register_job
from utils.mysql import MySQL
from utils.plugins.register import register_plugin_handlers
@ -38,7 +38,7 @@ def main() -> None:
# 传入服务并启动
Log.info("正在启动服务")
apps = AppsManager(mysql, redis, browser)
apps.refresh_list("./app/*")
apps.refresh_list("./apps/*")
apps.import_module()
apps.add_service()