bot status

let status = [
    {
        name: 'death',
        type:ActivityType.Playing,
    },
    {
        name: 'life',
        type:ActivityType.Playing,
    },
]

client.on('ready', (c) => {
    console.log('bot is online.');

    setInterval(() => {
        let random = Math.floor(Math.random * status.length);
        client.user.setActivity(status[random]);
    }, 15000);
});


but the bot won't show status
Was this page helpful?