All commands are in scripting.asm, and there's also a small python script that was written to assist with some of the automation.