add option to ping user on join/leave

This commit is contained in:
loicbersier 2019-12-16 16:36:50 +01:00
parent cfaebdd446
commit 915bf38c07
2 changed files with 2 additions and 0 deletions

View file

@ -23,6 +23,7 @@ class guildMemberAddListener extends Listener {
let welcomeMessage = join.get('message');
welcomeMessage = welcomeMessage.replace(/\[member\]/, guild.user.username);
welcomeMessage = welcomeMessage.replace(/\[memberPing\]/, guild.user);
welcomeMessage = welcomeMessage.replace(/\[server\]/, guild.guild.name);
let attach;

View file

@ -18,6 +18,7 @@ class guildMemberRemoveListener extends Listener {
let byeMessage = leave.get('message');
byeMessage = byeMessage.replace(/\[member\]/, guild.user.username);
byeMessage = byeMessage.replace(/\[memberPing\]/, guild.user);
byeMessage = byeMessage.replace(/\[server\]/, guild.guild.name);
let attach;