Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Temporary implementation for timestamp voice channel logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kyogoi committed Oct 6, 2019
1 parent efccfd5 commit 4403509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
});

Expand Down

0 comments on commit 4403509

Please sign in to comment.