Add files via upload

This commit is contained in:
Vortex 2024-02-21 14:12:58 +05:30 committed by GitHub
parent 23871b9539
commit e3671a00ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 8 deletions

View file

@ -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

View file

@ -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)