aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
703 stars 145 forks source link

Uncaught HTTPError Error: CAPTCHA_SOLVER_NOT_IMPLEMENTED While sending messages in non direct message channels #1113

Closed forveined closed 1 day ago

forveined commented 3 months ago

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

Additional Information

No response

TheDevYellowy commented 3 months ago

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

Omar8345 commented 3 months ago

Same, I'm trying to DM.

Omar8345 commented 3 months ago

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?

mirrored-wtf commented 3 months ago

Would also like to know the best way to implement capmonster.

hagetako0413 commented 1 month ago

また、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; } }, });