This is autoplay bot script. (There are some omissions on purpuse.)