From 63703675e10eaebaa815c02807ffa8e1542f4a4b Mon Sep 17 00:00:00 2001 From: jenz Date: Thu, 14 Jul 2022 21:23:19 +0200 Subject: [PATCH] updated autism bot plugin and python script to make movement hopefully less annoying to players --- AutismBotIngame/python/pyhoca_display.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/AutismBotIngame/python/pyhoca_display.py b/AutismBotIngame/python/pyhoca_display.py index 4ff2f473..7e789248 100644 --- a/AutismBotIngame/python/pyhoca_display.py +++ b/AutismBotIngame/python/pyhoca_display.py @@ -4,14 +4,14 @@ import subprocess whoami = subprocess.getoutput(["whoami"]) with open(f'/home/{whoami}/ze_runner/config.json') as jsonfile: - data_ports = json.load(jsonfile) + data_ports = json.load(jsonfile) +#enter screen to enter password def main(): - with Display() as disp: - d = subprocess.getoutput(["echo $DISPLAY"]) - print(d) - subprocess.getoutput([f"pyhoca-cli --server localhost -N --password {data_ports['x2go_pw']}"]) - + with Display() as disp: + d = subprocess.getoutput(["echo $DISPLAY"]) + print(d) + subprocess.getoutput([f"pyhoca-cli --server localhost -N --password {data_ports['x2go_pw']}"]) if __name__ == '__main__': - main() + main()