Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Discord JS user botting

Logging in with a user account.

Ok so, I noticed that it's extremely easy to use a bot with Python on Discord, but it's not possible on Node JS? I mean, there must be a way to log in to a user account with Node JS, anybody know?

Error

Whenever trying to log in to a user account with discord.js, it replies with this:

Error [TOKEN_INVALID]: An invalid token was provided.

I'm pretty curious; I'd like to make something that would react with "uwu" every time someone says "uwu".

like image 358
Cohen Schellenberg Avatar asked Dec 19 '25 13:12

Cohen Schellenberg


1 Answers

You can use https://github.com/botkalista/discord.js.userbot

const Discord = require('discord.js');
const allowUserBotting = require('discord.js.userbot');
const client = new Discord.Client();
allowUserBotting(client);
client.login('YOUR USER TOKEN HERE');
like image 153
Emily Avatar answered Dec 24 '25 11:12

Emily



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!