discord.js auto changing status
client.on('ready' () => {
console.log('The bot is online')
const statusArray = ['For Rule Breakers, WATCHING', 'Loki (Only On Disney+), WATCHING', 'GTAO, PLAYING', 'On Scarlet\'s Dream World, WATCHING', 'Music w Tiger\'s Rythm, LISTENING', ' Commands, LISTENING', 'Catching Variants, WATCHING', 'Football With Messi, PLAYING', 'Billie Eilish, LISTENING', 'HIVE Tresure Wars, PLAYING', ]; //What you want your statuses to be after puting the status name put a coma and a space and then the type what you want it to be note: please dont to it to STREAMING as you would have to input a twitch link
setInterval(() => {
client.user.setStatus('dnd');
const random = statusArray[Math.floor(Math.random() * statusArray.length)].split(', ')
const status = random[0];
const mode = random[1];
client.user.setActivity(status, { type: mode })
}, 3000) //your time of changing status in miliseconds for example 1 second = 1000 ms
});