mirror of
https://github.com/hypervortex/VH-Bombsquad-Modded-Server-Files
synced 2026-08-15 13:04:50 +00:00
Add files via upload
This commit is contained in:
parent
23871b9539
commit
e3671a00ed
2 changed files with 1 additions and 8 deletions
7
dist/ba_root/mods/tools/chatmessage.py
vendored
7
dist/ba_root/mods/tools/chatmessage.py
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
dist/ba_root/mods/tools/servercheck.py
vendored
2
dist/ba_root/mods/tools/servercheck.py
vendored
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue