This part is actually already coded up (and has been for a while), so you can get a very good idea of how it will work. See
this topic.
DB2 bots won't work. The syntax, command list, and behavior of commands are slightly different. That said, there's probably a way to convert old bots automatically to the new system fairly easily, assuming there are comparable sysvars. Evolved bots and conditionless bots will probably would be far harder, though. (For instance, sqrt in the DB3 code handles negative numbers differently).