From 6639023548eff7409398169cdd24969192d23409 Mon Sep 17 00:00:00 2001 From: Supositware Date: Fri, 5 Apr 2019 19:47:06 +0200 Subject: [PATCH] added [delete] --- rand.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rand.js b/rand.js index ec648d9b..7a63270a 100644 --- a/rand.js +++ b/rand.js @@ -24,9 +24,10 @@ exports.random = function (text, message) { text = text.replace(/\[author\]/, message.author.username); text = text.replace(/\[kick\]/, ' '); text = text.replace(/\[ban\]/, ' '); + text = text.replace(/\[delete\]/, ' '); text = text.replace(/\{n\}/, '\n'); // Verify if it replaced everything - } while( text.includes('[member]') || text.includes('[memberRand]') || text.includes('[number]') || text.includes('[author]') || text.includes('[kick]') || text.includes('[ban]') || text.includes('{n}')); + } while( text.includes('[member]') || text.includes('[memberRand]') || text.includes('[number]') || text.includes('[author]') || text.includes('[kick]') || text.includes('[ban]') || text.includes('{n}' || text.includes('[delete]'))); return text; };