Add telegram bot
This commit is contained in:
1 parent
134d610a5d
commit
6d2d9ab9ae
15 files changed
+941
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Launcher so the bot can be started from the project root.
|
||||
|
||||
python bots/run_bot.py [--once|--dry-run|--check]
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
BOTS_DIR = Path(__file__).resolve().parent
|
||||
if str(BOTS_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(BOTS_DIR))
|
||||
|
||||
from meetings_telegram_bot.__main__ import main # noqa: E402
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
Reference in new issue
Block a user