Each time app.start() was ran it would create more of the same loops causing the bot to hack too quickly.
If you closed the GUI and then entered app.start() it would append a another GUI as well as show the original GUI, and you would be unable to stop the bot.
I have added null checks to the intervals so that the intervals are only ran if they're not already running.
app.start() now checks to see if GUI has been appended as apposed to being visible or not. If the GUI was not visible it would run the GUI function and create duplicate events attached to the GUI controls that made the bot unable to stop.
Each time app.start() was ran it would create more of the same loops causing the bot to hack too quickly.
If you closed the GUI and then entered app.start() it would append a another GUI as well as show the original GUI, and you would be unable to stop the bot.
I have added null checks to the intervals so that the intervals are only ran if they're not already running. app.start() now checks to see if GUI has been appended as apposed to being visible or not. If the GUI was not visible it would run the GUI function and create duplicate events attached to the GUI controls that made the bot unable to stop.