Passed
Push — main ( e5d7db...d12e93 )
by Yohann
56s
created

main.receive_message()   A

Complexity

Conditions 3

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 15
rs 9.8
c 0
b 0
f 0
cc 3
nop 1
1
from src.core import start
2
import dotenv
3
4
print("Starting Server...")
5
6
7
def main():
8
    config = dotenv.dotenv_values('.env')
9
10
    ip = config.get('ip', '0.0.0.0')
11
    port = config.get('port')
12
13
    if not port:
14
        print("No port were specified in the configuration.")
15
        quit()
16
17
    start(ip, int(port))