Can someone help me start up my bot? its startup code looks something like this
const { Client, Events, GatewayIntentBits } = require('discord.js');
const { token } = require('./config.json');
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.once(Events.ClientReady, readyClient => {
console.log(`Ready! Logged in as ${readyClient.user.tag}`);
});
client.login(bot token here);
I started the code expecting my bot to just appear with an online presence, I don’t know if it started up with an offline presence or if it just didn’t start up
New contributor
Alex Blum is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2