mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🔧 修复 apps
导入问题
This commit is contained in:
parent
9327e69f9d
commit
5f533a29b8
4
main.py
4
main.py
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user