From dcf20255ee4c6fc2697f2e629084c0e2c75759fa Mon Sep 17 00:00:00 2001 From: CBenni Date: Tue, 12 Dec 2017 03:08:13 +0100 Subject: [PATCH] Added better message logging --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index dd406ee..9115f41 100644 --- a/index.js +++ b/index.js @@ -191,7 +191,7 @@ function loadImage(url) { } client.on('message', async function (message) { - console.log(message.cleanContent); + console.log(`[${message.guild.name} - ${message.channel.name}] ${message.author.username}#${message.author.discriminator}: ${message.cleanContent}`); if(message.cleanContent.startsWith('/invite')) { message.channel.send(`Invite link: <${invitelink}>`);