Add process controls and restart command
This commit is contained in:
2
main.py
2
main.py
@@ -8,6 +8,7 @@ from pathlib import Path
|
||||
|
||||
from app.config import load_app_config
|
||||
from app.manager import AccountManager
|
||||
from app.pyrogram_compat import install_kurigram_compat
|
||||
|
||||
LOG_FORMAT = "%(asctime)s | %(levelname)s | %(name)s | %(message)s"
|
||||
|
||||
@@ -37,6 +38,7 @@ _ROOT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
install_kurigram_compat()
|
||||
config = load_app_config(_ROOT)
|
||||
manager = AccountManager(config)
|
||||
await manager.run()
|
||||
|
||||
Reference in New Issue
Block a user