Skip to content

Commit

Permalink
Update verifyConfig.js
Browse files Browse the repository at this point in the history
updated botInvRegex const at bottom of file
  • Loading branch information
EngineerShawn authored Nov 21, 2023
1 parent c39f9eb commit f65d682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/nova-ai-discord/src/structures/verifyConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit f65d682

Please sign in to comment.