From f521b3c805a03519bad1e5708e7e078d072214ad Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Thu, 1 Feb 2024 13:41:30 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20new=20term=20for?= =?UTF-8?q?=20whitelisting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ListenerTriggers/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ListenerTriggers/index.ts b/src/ListenerTriggers/index.ts index bfbac78..2e5d2c3 100644 --- a/src/ListenerTriggers/index.ts +++ b/src/ListenerTriggers/index.ts @@ -49,7 +49,8 @@ type OnMessageCreate = { const whitelistQueries: OnMessageCreate = { expr: (msg) => !!msg.content.includes("whitelist") || - !!msg.content.match(/.*(form|application|apply|join).*(test|testnet)/gm), + !!msg.content.match(/.*(form|application|apply|join).*(test|testnet)/gm) || + !!msg.content.match(/.*[wW]h?en.*application.*approv(ed?|al)/gm), cb: async (msg) => { const currentWhiteListMsg = dayjs(); const diffInMins = currentWhiteListMsg.diff(lastWhiteListMsg, "minute");