mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-18 00:35:36 +00:00
25 lines
690 B
Python
25 lines
690 B
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Developed by KuiToi Dev
|
|
# File main.py
|
|
# Written by: SantaSpeen
|
|
# Version 0.1.0
|
|
# Licence: FPA
|
|
# (c) kuitoi.su 2023
|
|
import argparse
|
|
|
|
parser = argparse.ArgumentParser(description='KuiToi-Server - BeamingDrive server compatible with BeamMP clients!')
|
|
parser.add_argument('-v', '--version', action="store_true", help='Print version and exit.', default=False)
|
|
parser.add_argument('--config', help='Patch to config file.', nargs='?', default=None, type=str)
|
|
|
|
if __name__ == '__main__':
|
|
import core
|
|
try:
|
|
core.start()
|
|
except KeyboardInterrupt:
|
|
print("Exiting..")
|
|
except Exception as e:
|
|
print(e)
|
|
core.stop()
|