added more network recovery code

in order to use the network code you need to replace the bot.js file in
your ttapi module with the bot.js file on this repo