Bot status
retronbv (128)
client.on('ready', () => {
client.user.setPresence({ game: { name: 'with discord.js' }, status: 'idle' })
console.log(${client.user.username} is up and running!
);
})
RyanJackson3 (7)
@retronbv So I used the code you gave me. When I ran it it said "client not defined" so I modified the code to this
bot.on('ready', () => {
bot.user.setPresence({ WATCHING: { name: '!help' }, status: 'online' });
console.log(`[READY] ${bot.user.tag} has been successfully booted up!`);
});
The bot was able to start up but the status didn't show on the bot. Can you help with that?
RyanJackson3 (7)
@RyanJackson3 Never mind. I have recently discovered that game
is no longer supported.
retronbv (128)
game is still supported i think
RyanJackson3 (7)
@retronbv It is not.
you can use this piece of code here.
In the last line you can put whatever status you want.