var Logger = require("../utils/Logger.js");

module.exports = (bot, config, err) => {
<<<<<<< HEAD
	console.log(`DISCONNECT: ${err.code}: ${err.reason}\nATTEMPTING TO RECONNECT...`);
	/*if (err.code === 1006) {
		bot.login(config.admin.token);
	} else {
		process.exit(1);
	}*/
	Logger.forceSave();
	process.exit(1);
=======
	//console.log(`DISCONNECT: ${err.code}: ${err.reason}`);
	
	//Currently buggy and could accidentally spawn multiple instances of the bot, hence commented out
	//Gotta try it
	console.log(`DISCONNECT: ${err.code}: ${err.reason}\nATTEMPTING TO RECONNECT...`);
	bot.login(config.admin.token);
>>>>>>> origin/master
}

@@ -83,21 +83,8 @@
 %3E %7B%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
 %09con
@@ -301,327 +301,6 @@
 1);%0A
-=======%0A%09//console.log(%60DISCONNECT: $%7Berr.code%7D: $%7Berr.reason%7D%60);%0A%09%0A%09//Currently buggy and could accidentally spawn multiple instances of the bot, hence commented out%0A%09//Gotta try it%0A%09console.log(%60DISCONNECT: $%7Berr.code%7D: $%7Berr.reason%7D%5CnATTEMPTING TO RECONNECT...%60);%0A%09bot.login(config.admin.token);%0A%3E%3E%3E%3E%3E%3E%3E origin/master%0A
 %7D%0A

Update to compatible code