added logger

This commit is contained in:
imayushsaini 2021-10-23 15:57:59 +05:30
parent d26d5a2102
commit 7cb8323a5d
19 changed files with 1954 additions and 329 deletions

View file

@ -2,7 +2,7 @@
from playersData import pdata
from chatHandle.ChatCommands import Main
from tools import Logger
import ba, _ba
@ -10,6 +10,11 @@ import ba, _ba
def filter_chat_message(msg, client_id):
if msg.startswith("/"):
return Main.Command(msg, client_id)
acid=""
for i in _ba.get_game_roster():
if i['client_id'] == client_id:
acid = i['account_id']
Logger.log(acid+" | "+msg,"chat")
return msg
"""