What I am doing is with a MySQL databse and PHP webserver.
The bots send requests with information to the PHP server, then the mule reads that information on whether trade=true and readyToTrade=true. Then my mule logs in, trades, and logs back out.
It took me like 100 tries this week, but the mule is finally bug free.
Good luck!