Code Monkey home page Code Monkey logo

Comments (22)

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024

Error image

image

from discord.js-selfbot-v13.

VillainsRule avatar VillainsRule commented on June 2, 2024

You can just set an interval for a long time.

setInterval(() => false, 1 << 12);

If you don't like that, start an HTTP server on a random unused port.

Neither of these should be used in production, for obvious reasons.
I don't see why you would want to keep the terminal open in the first place, but this should work for now.

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024

You can just set an interval for a long time.

setInterval(() => false, 1 << 12);

If you don't like that, start an HTTP server on a random unused port.

Neither of these should be used in production, for obvious reasons. I don't see why you would want to keep the terminal open in the first place, but this should work for now.

Where should I use this function? The reason I don't want the console to remain open is that I am performing account verification. When such a problem arises, the console closes, and the process does not continue to other accounts, leaving the operation incomplete.

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on June 2, 2024
client.on('error', () => false)

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024
client.on('error', () => false)

Where should I use this?

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on June 2, 2024
        client.on('ready', async () => {
            await client.destroy()
        }).on('error', () => false)```

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024
client.on('ready', async () => {
            await client.destroy()
        }).on('error', () => false)```

unfortunately it didn't happen :(

image

image

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on June 2, 2024

edit from

const login = await client.login(token)
        const username = client.user.username
        client.on('ready', async () => {
            await client.destroy()
        })

to

      client.on('ready', async () => {
            await client.destroy()
        }).on('error', () => false)
const login = await client.login(token)
        const username = client.user.username

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024

edit from

const login = await client.login(token)
        const username = client.user.username
        client.on('ready', async () => {
            await client.destroy()
        })

to

      client.on('ready', async () => {
            await client.destroy()
        }).on('error', () => false)
const login = await client.login(token)
        const username = client.user.username

It happened like this, but even when it encounters account verification during login, I don't receive an error stating that the account is inactive because it logs into the account. How can I solve this issue?

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024

Except for the issue mentioned above, I'm experiencing the error in the image. What could be the problem?

HTTPError [DiscordjsError]: Request to use token, but token was unavailable to the client.

WhatsApp Görsel 2023-12-21 saat 20 22 33_75828b1a

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024

edit from

const login = await client.login(token)
        const username = client.user.username
        client.on('ready', async () => {
            await client.destroy()
        })

to

      client.on('ready', async () => {
            await client.destroy()
        }).on('error', () => false)
const login = await client.login(token)
        const username = client.user.username

image

I wonder what might be causing this error; I'm getting this error during the server joining process. The account is active. I can directly log into the server via the Discord application. I would be very grateful if you could help

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on June 2, 2024

try updating to v3

from discord.js-selfbot-v13.

yufusphp avatar yufusphp commented on June 2, 2024

try updating to v3

I don't understand

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on June 2, 2024
const Discord = require('discord.js-selfbot-v13'); // v3.0.0
const Captcha = require('2captcha');
const solver = new Captcha.Solver('key');

const client = new Discord.Client({
	captchaSolver: function (captcha, UA) {
		return solver
			.hcaptcha(captcha.captcha_sitekey, 'discord.com', {
				invisible: 1,
				userAgent: UA,
				data: captcha.captcha_rqdata,
			})
			.then((res) => res.data);
	},
});

client.on('ready', async () => {
	console.log('Ready!', client.user.tag);
	client.acceptInvite('mdmc');
});

client.login('token');

from discord.js-selfbot-v13.

yufusphp avatar yufusphp commented on June 2, 2024
const Discord = require('discord.js-selfbot-v13'); // v3.0.0
const Captcha = require('2captcha');
const solver = new Captcha.Solver('key');

const client = new Discord.Client({
	captchaSolver: function (captcha, UA) {
		return solver
			.hcaptcha(captcha.captcha_sitekey, 'discord.com', {
				invisible: 1,
				userAgent: UA,
				data: captcha.captcha_rqdata,
			})
			.then((res) => res.data);
	},
});

client.on('ready', async () => {
	console.log('Ready!', client.user.tag);
	client.acceptInvite('mdmc');
});

client.login('token');

Thank you, I will try it, I would be very grateful if you could help me with the following problem.

#961

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024
captchaSolver: function (captcha, UA) {
		return solver
			.hcaptcha(captcha.captcha_sitekey, 'discord.com', {
				invisible: 1,
				userAgent: UA,
				data: captcha.captcha_rqdata,
			})
			.then((res) => res.data);
	},

How can I use this method with capmonster?

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on June 2, 2024

Which library do you want to use?
image

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024

Which library do you want to use? image

node-capmonster

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on June 2, 2024
const { HCaptchaTask } = require('node-capmonster');
const solver = new HCaptchaTask('api_key');

const client = new Discord.Client({
	captchaSolver: function (captcha, UA) {
		const task = solver.task({
			websiteKey: captcha.captcha_sitekey,
			websiteURL: 'discord.com',
			isInvisible: true,
			data: captcha.captcha_rqdata,
		});
		return solver
			.createWithTask(task)
			.then((taskId) => solver.joinTaskResult(taskId))
			.then((response) => response.gRecaptchaResponse);
	},
});

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024
const { HCaptchaTask } = require('node-capmonster');
const solver = new HCaptchaTask('api_key');

const client = new Discord.Client({
	captchaSolver: function (captcha, UA) {
		const task = solver.task({
			websiteKey: captcha.captcha_sitekey,
			websiteURL: 'discord.com',
			isInvisible: true,
			data: captcha.captcha_rqdata,
		});
		return solver
			.createWithTask(task)
			.then((taskId) => solver.joinTaskResult(taskId))
			.then((response) => response.gRecaptchaResponse);
	},
});

I get this error

image

from discord.js-selfbot-v13.

Yusufkulcu avatar Yusufkulcu commented on June 2, 2024

How can I solve the above problem?

const { HCaptchaTask } = require('node-capmonster');
const solver = new HCaptchaTask('api_key');

const client = new Discord.Client({
	captchaSolver: function (captcha, UA) {
		const task = solver.task({
			websiteKey: captcha.captcha_sitekey,
			websiteURL: 'discord.com',
			isInvisible: true,
			data: captcha.captcha_rqdata,
		});
		return solver
			.createWithTask(task)
			.then((taskId) => solver.joinTaskResult(taskId))
			.then((response) => response.gRecaptchaResponse);
	},
});

How can I solve the above problem?

image

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on June 2, 2024

maybe capmonster requires full URL, try with https://discord.com

from discord.js-selfbot-v13.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.