OK so before I get 500 comments about self bots being against TOS I already know that and I am ready to accept the risk. So I have made other selfbots about 3-4 years ago before most libraries stopped supporting it and I would like to know is there a way I can make this code to accept a user token and log in?
const { Client } = require("discord.js");
const client = new Client({
disableEveryone: true
});
const config = require("./config.json");
var prefix = config.prefix;
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('message', msg => {
if(msg.author !== client.user) return;
if (msg.content.startsWith(prefix + 'bump')) {
msg.delete()
msg.channel.send(`**hello `)
}