code refactoring , mod update fix

This commit is contained in:
Ayush Saini 2023-08-15 16:43:07 +05:30
parent 7d5eb76ea7
commit 5e1ab245a9
93 changed files with 193555 additions and 26399 deletions

View file

@ -1,8 +1,10 @@
# Released under the MIT License. See LICENSE for details.
import fcntl
import _babase
import os
import _babase
clients = {}
cachedclients = []
muted = False
@ -10,9 +12,8 @@ coopmode = False
ips = {}
recents = []
SERVER_DATA_PATH = os.path.join(
_babase.env()["python_directory_user"], "serverData" + os.sep
_babase.env()["python_directory_user"], "serverdata" + os.sep
)
@ -21,7 +22,7 @@ def get_stats_index():
def read_logs(filename):
file_path = SERVER_DATA_PATH+filename
file_path = SERVER_DATA_PATH + filename
if not os.path.exists(file_path):
return ""
file = open(file_path, "r")