2023-12-18 15:43:41 +01:00
|
|
|
import os
|
2023-10-28 19:25:10 +02:00
|
|
|
import logging
|
|
|
|
|
2023-11-05 22:25:25 +01:00
|
|
|
from bozenka import launch_instances
|
2023-10-28 19:25:10 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
2023-12-18 15:43:41 +01:00
|
|
|
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")
|