bot/run.py

16 lines
464 B
Python
Raw Permalink Normal View History

import os
2023-10-28 19:25:10 +02:00
import logging
from bozenka import launch_instances
2023-10-28 19:25:10 +02:00
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
os.system("pip install -r requirements.txt")
2023-10-28 19:25:10 +02:00
logging.log(msg="Starting bozenka, lets go!", level=logging.INFO)
try:
launch_instances()
except (KeyboardInterrupt, SystemExit, RuntimeError):
print("INFO: Bot closed")
except ConnectionError:
print("INFO: No internet connection for now")