wtf nopecha api ???
This commit is contained in:
parent
0aa7ba2f1b
commit
67ab8277ed
@ -39,12 +39,12 @@ module.exports = class CaptchaSolver {
|
||||
});
|
||||
this.service = 'nopecha';
|
||||
this.solver = new NopeCHAApi(configuration);
|
||||
this.solve = siteKey =>
|
||||
this.solve = sitekey =>
|
||||
new Promise((resolve, reject) => {
|
||||
this.solver
|
||||
.solveToken({
|
||||
type: 'hcaptcha',
|
||||
sitekey: siteKey,
|
||||
sitekey,
|
||||
url: 'https://discord.com',
|
||||
})
|
||||
.then(res => (res ? resolve(res) : reject(new Error('Captcha could not be solved'))))
|
||||
|
@ -375,7 +375,7 @@ class RequestHandler {
|
||||
Method : ${request.method}
|
||||
Path : ${request.path}
|
||||
Route : ${request.route}
|
||||
Key : ${captcha.slice(0, 50)}...`,
|
||||
Key : ${captcha}`,
|
||||
);
|
||||
request.retries++;
|
||||
return this.execute(request, captcha, data.captcha_rqtoken);
|
||||
|
Loading…
Reference in New Issue
Block a user