Re-enable join/leave messages

This commit is contained in:
Lamp 2018-05-30 14:24:45 -07:00 committed by GitHub
parent da1d0ca8d7
commit 4a86998814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -150,13 +150,13 @@ global.createMPPbridge = function (room, DiscordChannelID, site = 'MPP', webhook
gClient.sendArray(arr);
});
/*// announce join/leave
gClient.on('participant added', participant => {
dSend(`**\`${participant._id.substr(0,4)}\` ${participant.name} entered the room.**`);
// announce join/leave
gClient.on('participant added', participant => { //TODO universal way of filtering names
dSend(`**\`${participant._id.substr(0,6)}\` ${participant.name.replace(/<@/g, "<\\@")} entered the room.**`);
});
gClient.on('participant removed', participant => {
dSend(`**\`${participant._id.substr(0,4)}\` ${participant.name} left the room.**`);
});*/ // too spammy
dSend(`**\`${participant._id.substr(0,6)}\` ${participant.name.replace(/<@/g, "<\\@")} left the room.**`);
});
/*// autoban banned participants