From 7bfe8dda2b2703e48dcc061872eec5f1404c98a4 Mon Sep 17 00:00:00 2001 From: VenomousSteam81 Date: Tue, 16 Jul 2024 22:40:04 +0000 Subject: [PATCH] make server.py executable. you can now run `./server.py` instead of `python3 server.py` --- server.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server.py b/server.py index 55090f0..ae6fcf8 100755 --- a/server.py +++ b/server.py @@ -1,4 +1,5 @@ -#! /usr/bin/python3 +#!/usr/bin/python3 + import os, sys, asyncio, re, signal from platform import uname from traceback import format_exc @@ -50,9 +51,8 @@ try: log("Explicitly erasing cached messages") G.msgs = [] elif arg in ["-?", "-h", "--help"]: - filename = filename if filename.startswith("./") else "python3 "+filename print( - f"""{filename} + f"""python3 {filename} All arguments are optional! All areguments are *expected* to only be specified once, if it appears mutliple times, the last one takes priority. The exception to the above rule is `--link`, since you could want to link to multiple other servers. @@ -67,9 +67,9 @@ Accepted arguments: --cwlgd - Crashes the server when outbound links go down Examples: -{filename} --hostname=Fun-chat --link=chat.example.com:65048 --port=92628 -{filename} --no-logs --no-cache -{filename} --address=127.0.0.1 -l -p=7288""" +python3 {filename} --hostname=Fun-chat --link=chat.example.com:65048 --port=92628 +python3 {filename} --no-logs --no-cache +python3 {filename} --address=127.0.0.1 -l -p=7288""" ) exit(0) elif arg in ["-l", "--no-logs"]: