mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-01 17:10:10 +00:00

* [CORE] Remove some key from json * [UTIL] Remove "console.py" * [UTIL] Remove set_slice_end * [CORE] Ffmpeg remove static variable * [CORE] Rename _jsonConfig to config_json * [UTIL] Remove "call_stack.py" * [UTIL] Remove variable "USE_LARGE_BAR"
25 lines
573 B
Python
25 lines
573 B
Python
# 26.11.24
|
|
|
|
import sys
|
|
|
|
|
|
# Internal utilities
|
|
from StreamingCommunity.run import main
|
|
from StreamingCommunity.Util.config_json import config_manager
|
|
from StreamingCommunity.TelegramHelp.telegram_bot import TelegramRequestManager, TelegramSession
|
|
|
|
|
|
# Variable
|
|
TELEGRAM_BOT = config_manager.get_bool('DEFAULT', 'telegram_bot')
|
|
|
|
|
|
if TELEGRAM_BOT:
|
|
request_manager = TelegramRequestManager()
|
|
request_manager.clear_file()
|
|
script_id = sys.argv[1] if len(sys.argv) > 1 else "unknown"
|
|
|
|
TelegramSession.set_session(script_id)
|
|
main(script_id)
|
|
|
|
else:
|
|
main() |