Moving Max Attempts to config
This commit is contained in:
@@ -14,6 +14,7 @@ module.exports = {
|
||||
},
|
||||
'captchaCount': '7',
|
||||
'captchaTimeout': '120000', //in milliseconds (seconds multiplied by 1000)
|
||||
'maxAttempts': '3', // max attemps to verify
|
||||
'messages': {
|
||||
//literally messages lmao
|
||||
'toVerify': 'Please verify that you are not a robot.',
|
||||
@@ -25,4 +26,4 @@ module.exports = {
|
||||
'unableToDM': 'I was unable to send you a DM. Please make sure "Allow Direct Message" for this guild is enabled.',
|
||||
'maxAttemptsExceeded': 'You have run out of attempts!'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
let attempts = 0;
|
||||
const maxAttempts = 3;
|
||||
const maxAttempts = cfg.maxAttempts;
|
||||
let validated = false; // Flag to track if user is already validated
|
||||
|
||||
async function verifyUser(captcha) {
|
||||
|
||||
Reference in New Issue
Block a user