Uncaught HTTPError Error: CAPTCHA_SOLVER_NOT_IMPLEMENTED While sending messages in non direct message channels
forveined opened this issue · comments
Which package has the bugs?
The core library
Issue description
Send messages in public channels in a loop
Uncaught HTTPError Error: CAPTCHA_SOLVER_NOT_IMPLEMENTED
at execute (c:\Users\forveined\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:412:15)
at processTicksAndRejections (internal/process/task_queues:95:5)
Code sample
No response
Package version
discord.js-selfbot-v13@3.1.4
Node.js version
18.15.0
Operating system
Windows
Priority this issue should have
Low (slightly annoying)
Checklist
- I have searched the open issues for duplicates.
- I have shared the entire traceback.
- I am using a user token (and it isn't visible in the code).
Additional Information
No response
this error means that discord has detected that the request being sent probably wasn't from a real person so it sends a captcha and won't let the request through until you complete the captcha. I've linked an example of how to implement the captcha service in the blue text below, don't worry about anything in the client.on("ready", () => {}) event that's irrelevant to the captcha.
discord.js-selfbot-v13/examples/AddBot.js
Same, I'm trying to DM.
this error means that discord has detected that the request being sent probably wasn't from a real person so it sends a captcha and won't let the request through until you complete the captcha. I've linked an example of how to implement the captcha service in the blue text below, don't worry about anything in the client.on("ready", () => {}) event that's irrelevant to the captcha. discord.js-selfbot-v13/examples/AddBot.js
How to do capmonster
?
Would also like to know the best way to implement capmonster.
また、capmonsterを実装するための最良の方法を知りたいです。
const { CapMonsterCloudClientFactory, ClientOptions, HCaptchaProxylessRequest } = require('@zennolab_com/capmonstercloud-client');
const cmcClient = CapMonsterCloudClientFactory.Create(new ClientOptions({ clientKey: process.env.capmonster }));
const client = new Client({
captchaSolver: async function (captcha, UA) {
const hcaptchaRequest = new HCaptchaProxylessRequest({
websiteURL: 'https://discord.com',
websiteKey: captcha.captcha_sitekey,
userAgent: UA,
data: captcha.captcha_rqdata,
});
try {
const response = await cmcClient.Solve(hcaptchaRequest);
return response.solution.gRecaptchaResponse;
} catch (error) {
console.error('Failed to solve hCaptcha:', error);
throw error;
}
},
});