run_bot script slightly smarter, runs in a loop