diff --git a/dist/ba_root/mods/tools/chatmessage.py b/dist/ba_root/mods/tools/chatmessage.py index ee57215..ffc3d6f 100644 --- a/dist/ba_root/mods/tools/chatmessage.py +++ b/dist/ba_root/mods/tools/chatmessage.py @@ -1,11 +1,6 @@ import json import os import _ba -import setting - -# Load settings -settings = setting.get_settings_data() -lm = settings["discordbot"]["lastmsg"] # Define the directory path using the new_member_count variable directory_path = os.path.join(_ba.env()["python_directory_user"], "tools") @@ -15,7 +10,7 @@ if not os.path.exists(directory_path): os.makedirs(directory_path) # Define the file path within the directory -file_path = os.path.join(directory_path, f"{lm}_messages.txt") # Adjust the file name and path as needed +file_path = os.path.join(directory_path, f"last_messages.txt") # Adjust the file name and path as needed def last_message_count(msg): # Create or append to the new file with the message diff --git a/dist/ba_root/mods/tools/servercheck.py b/dist/ba_root/mods/tools/servercheck.py index 20db8ef..8397cf5 100644 --- a/dist/ba_root/mods/tools/servercheck.py +++ b/dist/ba_root/mods/tools/servercheck.py @@ -264,8 +264,6 @@ def on_player_join_server(pbid, player_data, ip, device_id): color=(0.60, 0.8, 0.6), transient=True, clients=[clid]) jc.join_claim(device_string, clid, pbid) - # cc.register_main_bs_number(pbid, device_string) - # cc.player_main_on_map(pbid, device_string) pinfo.update_player_info(device_string, pbid, device_id, ip) pdata.player_count(pbid) notification_manager.player_joined(pbid)