Skip to content

Commit

Permalink
chore: 🤖 add new term for whitelisting
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Feb 1, 2024
1 parent 4713a7a commit f521b3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ListenerTriggers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f521b3c

Please sign in to comment.