I've decided to make a bot social experiment for a game I play where people can just play with bot, but I've run into a problem. I tried to make it loop but the code does not - it only goes 2 level ids then ends the run. How do I make it loop forever instead of going twice then stopping? Could it be gd.py or on my end?
imports:  keep_alive, gd, time, random, os
Do you need to know why it only iterates two times? Okay according to your code it should run only 2 times. In for level in levelids: you say the program to iterate through ids in levelids = [10565740,3979721]. So the code runs through these two elements and ends the program.
So you need to run it forever? According to your code if you want to run the code indefinitely then you need to add elements to levelids list indefinitely.
I feel like there is confusion with what you want to do with your code and what code does for you.
How would I make this loop, it stops after 2 iterations