From c3ee2fbc43419058e8d8203907fbf9d9fc5efd4f Mon Sep 17 00:00:00 2001 From: CBenni Date: Sun, 7 Jan 2018 15:42:19 +0100 Subject: [PATCH] Some debugging --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 99dc0bf..7c08e58 100644 --- a/index.js +++ b/index.js @@ -175,6 +175,7 @@ client.login(config.discord.token).catch(error => { const discordAvatarRegex = /(https:\/\/cdn.discordapp.com\/avatars\/\w+\/\w+\.(\w+)\?size=)(\w+)/; function findEmoji(message) { + console.log('Mentions:', message.mentions); // find a user mention if (message.mentions.members.size > 0) { const mentionedMember = message.mentions.members.first(); @@ -260,7 +261,7 @@ client.on('message', async message => { commandParsed = /^([/\\])(\w+)\b/.exec(messageSplit[i]); if (commandParsed) { const [, direction, command] = commandParsed; - console.log('Got command ', direction, command, direction === '\\' ? 'flipped' : 'not flipped'); + console.log('Got command ', direction, command, direction === '\\' ? 'flipped' : 'not flipped', emoji); if (templates[command]) { count++; name += command;