var login = require('./login.json');
var discord = require('discord.js');
var dex = require('./modules/dex.js');

var bot = new discord.Client();

bot.on('ready', function() {
  console.log('Logged in as ' + bot.user.username + '#' + bot.user.discriminator);
});

bot.on('message', function(message) {
	// Temporary command to kill bot process quickly from chat
	if(message.content == "die"){
		bot.destroy();
	}

	// Main message check. Check for bot message and prefix/command
	if(message.author != bot.user){
		dex.pkm_name.run(message);
	}
});

bot.login(login.token);

@@ -1,17 +1,19 @@
 var 
-login
+discord
  = requi
@@ -20,20 +20,18 @@
 re('
-./login
+discord
 .js
-on
 ');%0D
@@ -31,31 +31,29 @@
 .js');%0D%0Avar 
-discord
+login
  = require('
@@ -48,34 +48,36 @@
  = require('
-discord
+./login
 .js
+on
 ');%0D%0Avar dex
@@ -401,23 +401,78 @@
 e%22)%7B
-%0D%0A%09%09bot.destroy
+%0A    console.log(%22Logging off...%22);%0D%0A%09%09bot.destroy();%0A    process.exit
 ();%0D

Exit console output and process kill