You'd definitely need to write such a code yourself, and it could only apply directly to AI bots as player agents' speed cannot be manipulated.
Use the stickied Q&A thread in the future. Do not create new threads for individual "how do I?" or "where can I find?" questions.