From the developers, regarding automation scripts:
"The first and most important: in any case NEVER run any code, change the game routine or automate things in this game, that is strictly prohibited.
Second. No one likes doing same things again and again. If you really hate a routine, and you happen to have written a script for it - message me, it is quite possible that I will incorporate your code to the game. Plus it's better to immediately send me pool request at GitHub - https://github.com/TatriX/rogalia/pull/new/master "