From f65d68292d73fb4f164d4205f71a8f255f3f5b2c Mon Sep 17 00:00:00 2001 From: Engineer Shawn <147225693+EngineerShawn@users.noreply.github.com> Date: Tue, 21 Nov 2023 01:29:07 -0600 Subject: [PATCH] Update verifyConfig.js updated botInvRegex const at bottom of file --- projects/nova-ai-discord/src/structures/verifyConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/nova-ai-discord/src/structures/verifyConfig.js b/projects/nova-ai-discord/src/structures/verifyConfig.js index 555667f9..d9fec305 100644 --- a/projects/nova-ai-discord/src/structures/verifyConfig.js +++ b/projects/nova-ai-discord/src/structures/verifyConfig.js @@ -51,6 +51,6 @@ module.exports = config => { } }; function authorization(url) { - const botInvRegex = /^https:\/\/discord\.com\/oauth2\/authorize$/; + const botInvRegex = /^https:\/\/discord\.com\/api\/oauth2\/authorize\?client_id=\d+&permissions=\d+&redirect_uri=https%3A%2F%2Fnovaai\.engineerpatterson\.com%2Foauth2%2Fcallback&response_type=code&scope=[\w%20\.]+/; return botInvRegex.test(url); }