From 4e190f553e9ff930a5d69babdcb71cd6728d010d Mon Sep 17 00:00:00 2001 From: Alastair Holland Date: Sun, 3 May 2020 01:45:42 +0100 Subject: [PATCH] Added automatic library installation --- __pycache__/bot.cpython-36.pyc | Bin 2986 -> 2986 bytes __pycache__/librarySetup.cpython-36.pyc | Bin 0 -> 715 bytes __pycache__/setup.cpython-36.pyc | Bin 1065 -> 1101 bytes configure.py | 5 +++++ librarySetup.py | 23 +++++++++++++++++++++++ run.py | 5 +++++ setup.py | 13 +++++++------ 7 files changed, 40 insertions(+), 6 deletions(-) create mode 100755 __pycache__/librarySetup.cpython-36.pyc create mode 100755 configure.py create mode 100755 librarySetup.py diff --git a/__pycache__/bot.cpython-36.pyc b/__pycache__/bot.cpython-36.pyc index 4a028b771d421aee52978b4e4cf4840f213490d1..ef09e22000d288c643232e243f7272b81a99ef20 100755 GIT binary patch delta 15 WcmZ1_zDk_Un3tEUk7Fa-5^ew>1q0jw delta 15 WcmZ1_zDk_Un3tF963a%mCENfZi3A(~ diff --git a/__pycache__/librarySetup.cpython-36.pyc b/__pycache__/librarySetup.cpython-36.pyc new file mode 100755 index 0000000000000000000000000000000000000000..53f027b997044f025f1f16ec06bef49f01763215 GIT binary patch literal 715 zcmaJLAXb>;WpdpKas&wluXo><^i!4FYkD-MuGO=2HfusURh^ORl zWKWjl)$~yJ-&BGN}6tOZ{F;%S6M7&)+!e?|&3*I;pgVZSzv#G7yG2|~{ou6T)1}D$ zurPj{X%i-iUsPtEXVZWb_5QN(gVd+`uO@i!i&#gw5-*CXCJXiYpJLaJdzg?$G|7~@ z-dUqNa@=p+b7_iD>xSjJ8R$wInKtfnVBzQ40lcL X7gzz0_8RYXnu{`#Z*1T8;@;>Um=Cac literal 0 HcmV?d00001 diff --git a/__pycache__/setup.cpython-36.pyc b/__pycache__/setup.cpython-36.pyc index 2a1320341a7bc860fad9d15c84111b17c817627b..fe7043bc138cbd190b78b9d5ed8085549b0cfd2e 100755 GIT binary patch delta 184 zcmZ3Nm?QIwjP;*waBIN6f9&D;WL0|O%mGY=yN5DGAIF|ja%SRly4%*V{d$OV*ziGW3! MSQt4be_*x*03!1v#sB~S delta 132 zcmX@hv66$!n3tF92kW}HE|!U0#(bO%3=Awl>iW$T?Yv*>-XybBl-(&=3Yj4kjK( b4j>d@ ") serverIP = input("Input your server URL/IP here > ") port = input("Input your bot port here (If you don't know it, leave blank) > ") if port == "": - port = "25565" + port = "25565" #Default Minecraft server port '''Concantinate into a string''' - data = "TOKEN={}\nSERVER={}\nPORT={}".format(token,serverIP,port) + data = "TOKEN={}\nSERVER={}\nPORT={}".format(token,serverIP,port) #Sets the format of the data '''Write data to the .env file''' creds = open(".env", "w") @@ -35,6 +35,7 @@ def environment(): return else: tryAgain = ("Error writing data. \n Try again? (y/n) > ") + tryAgain = tryAgain.lower() #Makes the input string lowercase if tryAgain == "y" or tryAgain == "yes": environment() else: