I had a cagebot script that I used for a while. Instead of waiting for a PM, it would see if hobopolis is open (by loading the dungeon logs and searching for whether the hoboverlord had been defeated), and, if it is, do basically as you said. It had a few checks to determine how to play-...