From 915bf38c071aa815fa5173966d77d9f65126c72a Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 16 Dec 2019 16:36:50 +0100 Subject: [PATCH] add option to ping user on join/leave --- event/listeners/guildMemberAdd.js | 1 + event/listeners/guildMemberRemove.js | 1 + 2 files changed, 2 insertions(+) diff --git a/event/listeners/guildMemberAdd.js b/event/listeners/guildMemberAdd.js index eda1c12..2101289 100644 --- a/event/listeners/guildMemberAdd.js +++ b/event/listeners/guildMemberAdd.js @@ -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; diff --git a/event/listeners/guildMemberRemove.js b/event/listeners/guildMemberRemove.js index f6c5441..b8b6d04 100644 --- a/event/listeners/guildMemberRemove.js +++ b/event/listeners/guildMemberRemove.js @@ -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;