Automatically uses the first poke and the first attack.
This script basically just hits the continue button over and over again, it's not meant to automate the entire process. It only takes 10-20 battles to get a base level Pokemon up to level 100, so it's really not so terrible to just rebattle manually. You're welcome to fork the script and try to write the changes yourself.
can you make it so that it will continue battling until i voluntarily stop