From 4403509172a53a22dca41657aacaa9b24b9b03c6 Mon Sep 17 00:00:00 2001 From: willowsnow Date: Sun, 6 Oct 2019 15:01:14 -0500 Subject: [PATCH] Temporary implementation for timestamp voice channel logging --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 854f363..8a6fe0b 100644 --- a/src/index.js +++ b/src/index.js @@ -52,7 +52,7 @@ db.run('UPDATE channels SET set_to_purge = 0 WHERE voice_id = ?', [newMember.voiceChannelID]); textChannel.overwritePermissions(newMember, { "VIEW_CHANNEL": true }); - if (config.emitLog) textChannel.send(`${newMember} has entered the voice channel.`); + if (config.emitLog) textChannel.send(`[${(new Date()).toISOString()}] ${newMember} has entered the voice channel.`); } });