From 4e6a638641d28c7d00d4cacce0a208afeba364d4 Mon Sep 17 00:00:00 2001 From: christian Date: Sun, 17 Oct 2021 15:00:04 +0200 Subject: [PATCH] updated other server checks --- AutismBotIngame/python/ingamefollowct.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AutismBotIngame/python/ingamefollowct.py b/AutismBotIngame/python/ingamefollowct.py index e4a8020e..79f8a1c0 100644 --- a/AutismBotIngame/python/ingamefollowct.py +++ b/AutismBotIngame/python/ingamefollowct.py @@ -201,9 +201,10 @@ if __name__ == '__main__': launch_css_process() connected_to_other = False connection_issue_counter = -10 - connection_issue_counter += 1 - print('connection_issue_counter: ', connection_issue_counter) - bot_connect(data, connected_to_other) + if not connected_to_other or "ze" in data: + connection_issue_counter += 1 + print('connection_issue_counter: ', connection_issue_counter) + bot_connect(data, connected_to_other) elif "clientmessage:" in data: messager_name = data.split("clientmessage:", 1)[1].split(" 72DqZ84")[0] databyte_send_message = messager_name + data.split("72DqZ84")[1]