This commit is contained in:
Ayush Saini 2023-08-19 02:43:00 +05:30
parent 463c3f9928
commit 4cebf909e3
9 changed files with 35 additions and 34 deletions

View file

@ -52,8 +52,7 @@ def execute(msg, clientid):
command = msg.lower().split(" ")[0].split("/")[1]
arguments = msg.lower().split(" ")[1:]
accountid = clientid_to_accountid(clientid)
print("checking command type")
print(command_type(command))
if command_type(command) == "Normal":
normal_commands.ExcelCommand(command, arguments, clientid, accountid)

View file

@ -17,6 +17,7 @@ import time
from datetime import datetime
import _babase
import _bascenev1
from typing import TYPE_CHECKING
import babase
@ -64,7 +65,7 @@ class modSetup(babase.Plugin):
bootstraping()
servercheck.checkserver().start()
ServerUpdate.check()
bs.apptimer(5, account.updateOwnerIps)
bs.AppTimer(5, account.updateOwnerIps)
if settings["afk_remover"]['enable']:
afk_check.checkIdle().start()
if (settings["useV2Account"]):

View file

@ -22982,14 +22982,14 @@
"lastSpam": 1692041275.3951833,
"totaltimeplayer": 0,
"warnCount": 0,
"lastWarned": 1692116320.3350005,
"lastWarned": 1692388455.527413,
"verified": true,
"rejoincount": 1,
"lastJoin": 1692116320.3350034,
"lastJoin": 1692388455.5274153,
"lastIP": "axj~|h~}hhai",
"deviceUUID": "26f30cfd3921c2d15574b534cb824c952b14f189",
"cMsgCount": 0,
"lastMsgTime": 1692092832.8181152,
"cMsgCount": 1,
"lastMsgTime": 1692388464.9424736,
"lastMsg": "/ping all",
"cSameMsg": 0
}

View file

@ -22982,10 +22982,10 @@
"lastSpam": 1692041275.3951833,
"totaltimeplayer": 0,
"warnCount": 0,
"lastWarned": 1692116320.3350005,
"lastWarned": 1692388352.1588542,
"verified": true,
"rejoincount": 1,
"lastJoin": 1692116320.3350034,
"lastJoin": 1692388352.1588569,
"lastIP": "axj~|h~}hhai",
"deviceUUID": "26f30cfd3921c2d15574b534cb824c952b14f189",
"cMsgCount": 0,

View file

@ -70,8 +70,8 @@
],
"commands": [],
"ids": [
"pb-IF4VAk4a",
"pb-IF5RU3EcAg=="
"pb-IF5RU3EcAg==",
"pb-IF4VAk4a"
]
},
"bypass-warn": {

View file

@ -70,8 +70,8 @@
],
"commands": [],
"ids": [
"pb-IF4VAk4a",
"pb-IF5RU3EcAg=="
"pb-IF5RU3EcAg==",
"pb-IF4VAk4a"
]
},
"bypass-warn": {

View file

@ -2,7 +2,7 @@
"startDate": "06-08-2023",
"stats": {
"pb-IF4VAk4a": {
"rank": 1,
"rank": 2,
"name": "pb-IF4VAk4a",
"scores": 0,
"total_damage": 0.0,
@ -15,16 +15,16 @@
"last_seen": "2022-04-26 17:01:13.715014"
},
"pb-IF5RU3EcAg==": {
"rank": 2,
"rank": 1,
"name": "PC593100",
"scores": 20,
"scores": 115,
"total_damage": 0.0,
"kills": 0,
"deaths": 2,
"games": 6,
"kd": 0.0,
"avg_score": 3.333,
"last_seen": "2023-08-15 21:53:45.049564",
"kills": 10,
"deaths": 22,
"games": 8,
"kd": 0.454,
"avg_score": 14.375,
"last_seen": "2023-08-19 01:10:49.857814",
"aid": "pb-IF5RU3EcAg=="
}
}

View file

@ -2,7 +2,7 @@
"startDate": "06-08-2023",
"stats": {
"pb-IF4VAk4a": {
"rank": 1,
"rank": 2,
"name": "pb-IF4VAk4a",
"scores": 0,
"total_damage": 0.0,
@ -15,16 +15,16 @@
"last_seen": "2022-04-26 17:01:13.715014"
},
"pb-IF5RU3EcAg==": {
"rank": 2,
"rank": 1,
"name": "PC593100",
"scores": 20,
"scores": 115,
"total_damage": 0.0,
"kills": 0,
"deaths": 2,
"games": 6,
"kd": 0.0,
"avg_score": 4.0,
"last_seen": "2023-08-15 21:53:45.049564",
"kills": 10,
"deaths": 22,
"games": 8,
"kd": 0.454,
"avg_score": 14.375,
"last_seen": "2023-08-19 01:10:49.857814",
"aid": "pb-IF5RU3EcAg=="
}
}

View file

@ -3,7 +3,8 @@ from typing import TYPE_CHECKING
import bascenev1 as bs
from efro.terminal import Clr
import bauiv1 as bui
import babase
if TYPE_CHECKING:
pass
@ -52,10 +53,10 @@ def _fetch_public_servers():
bui.app.plus.add_v1_account_transaction(
{
'type': 'PUBLIC_PARTY_QUERY',
'proto': babase.app.protocol_version,
'proto': bui.app.protocol_version,
'lang': bs.app.lang.language,
},
callback=babase.Call(_on_public_party_response),
callback=bui.WeakCall(_on_public_party_response),
)
bui.app.plus.run_v1_account_transactions()