added auto reconnect, requires bot.js file