···157157# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158# and can be added to the global gitignore or merged into this file. For a more nuclear
159159# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160-#.idea/160160+#.idea/
161161+162162+picalc/
+1-1
src/server/picalc/pi.txt
···11-3.141592653589793238462643383279502884197169399375105820974944592411+No clients have connected yet. Become one of the first!
+11-2
src/server/setup.py
···11+import os.path
12print("Welcome to Pistributed Server Setup.")
23print("Do not run on unsecure or slow servers. Do not run on servers you don't own or have control over*. You may get lots of requests to your server. This depends if lots of people are using your Pistributed server.")
34print("*having control over requires permission if there is a server owner that isn't yourself.")
···89You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.""")
910print("By continuing, you agree to these terms, disclaimers, and acknowledge that there is NO WARRANTY.")
1011print("Security is not guarenteed. I am not responsible for ANY damages or attempts of damages to ANY computer, phone, or device running Pistributed's client or server.")
1212+print("Please run setup.py in the directory the server file is in <3")
1113input("I agree, and would like to continue. (to continue, press enter)")
1212-email = input("What email would you like to display for server support? THIS WILL BE MADE PUBLIC" )
1414+email = input("What email would you like to display for server support? THIS WILL BE MADE PUBLIC ")
1315called = input("What would you like to be called? (ex: Wish) THIS WILL BE MADE PUBLIC ")
1416print("Thank you! Creating a .env file... Make sure to run server.py when you are ready!")
1517with open(".env", "w") as file:
1616- file.write("EMAIL=" + email + "\nNAME=" + called)1818+ file.write("EMAIL=" + email + "\nNAME=" + called)
1919+isExist = os.path.exists("picalc")
2020+if not isExist:
2121+ os.makedirs("picalc")
2222+ print("Picalc not found, creating")
2323+with open("picalc/pi.txt", "w") as pifile:
2424+ pifile.write("No clients have connected yet. Become one of the first!")
2525+ print("Created picalc/pi.txt successfully. Do NOT edit this file!")