add option to ping user on join/leave
This commit is contained in:
parent
cfaebdd446
commit
915bf38c07
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue