16 lines
464 B
Python
16 lines
464 B
Python
import os
|
|
import logging
|
|
|
|
from bozenka import launch_instances
|
|
|
|
if __name__ == "__main__":
|
|
logging.basicConfig(level=logging.INFO)
|
|
os.system("pip install -r requirements.txt")
|
|
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")
|