highlight playernames in discord channel

This commit is contained in:
Buckaroo Banzai 2020-06-13 21:39:51 +02:00 committed by GitHub
parent 359b1d7404
commit 95b5ab6ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,10 +73,10 @@ module.exports = function(remote, events){
if (event.message_type == "me"){
// me message
message = `* ${event.username}${mapped_username} ${event.message}`;
message = `* **${event.username}${mapped_username}** ${event.message}`;
} else {
// normal message
message = `<${event.username}${mapped_username}> ${event.message}`;
message = `**<${event.username}${mapped_username}>** ${event.message}`;
}
} else {
// system message