From 02c474ef44468d2180e7df5b2e6d99bfa9a05470 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Fri, 2 Aug 2024 14:20:51 +0200 Subject: [PATCH] Updated regex --- keywords/freaky.js | 2 +- keywords/gambling.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keywords/freaky.js b/keywords/freaky.js index dff576c..7670f43 100644 --- a/keywords/freaky.js +++ b/keywords/freaky.js @@ -10,7 +10,7 @@ const { module.exports = { keyword: "freaky", - regex: /^.{0,5}(freak|freaky).{0,17}$/i, + regex: /^.*(freak|freaky).{0,17}$/i, cooldown: 3, random: 80, run: async (client, message, user) => { diff --git a/keywords/gambling.js b/keywords/gambling.js index a95997a..dd6b57d 100644 --- a/keywords/gambling.js +++ b/keywords/gambling.js @@ -10,7 +10,7 @@ const { module.exports = { keyword: "gambling", - regex: /^.{0,5}(gambling|gamble).{0,17}$/i, + regex: /^.*(gambling|gamble).{0,17}$/i, cooldown: 3, random: 80, run: async (client, message, user) => {