/* justcord-3
 * A JC3MP-Discord bridge.
 *
 * Author: MD678685
 * Licensed under the MIT license.
 *
 * Uses Eris, a Discord library licensed under the MIT license.
 * Requires the chat package.
 */

// External Modules
const ErisClient = require("eris").Client;

// Listeners
const util = require("./util");

// Config
const config = require("./config")();

// Initialise Eris
const eris = new ErisClient(config.eris.token);

// Globally-Exposed Variables
global.justcord = {
    chat: jcmp.events.Call("get_chat")[0],
    config,
    eris
};

// Event Handlers
require("./erisevents");
require("./jcevents");

eris.connect();

@@ -256,16 +256,48 @@
 .Client;
+%0Aconst debug = require(%22debug%22);
 %0A%0A// Lis
@@ -336,16 +336,79 @@
 til%22);%0A%0A
+// Logging%0Aconst log = debug(%22justcord%22);%0Alog.enabled = true;%0A%0A
 // Confi
@@ -629,16 +629,25 @@
     eris
+,%0A    log
 %0A%7D;%0A%0A// 

Add logging mechanism via debug