Horje
discord.js stats command Code Example
discord js stats command
client.on('message', message => {
    if (message.content.toLowerCase().startsWith(prefix + 'stats')){
        if(message.author.bot) return;
        const exampleEmbed = new Discord.MessageEmbed()
            .setColor('RANDOM')
            .setTitle("Bot's Live Status")
            .addField(" \u200B ", "**Channels** : ` " + `${client.channels.cache.size}` + " `")
            .addField(" \u200B ", "**Servers** : ` " + `${client.guilds.cache.size}` + " `")
            .addField(" \u200B ", "**Users** : ` " + `${client.users.cache.size}` + " `")
        message.channel.send(exampleEmbed);
    }
})
discord.js stats command
const ToTalSeconds = (client.uptime / 1000);
const Days = Math.floor(ToTalSeconds / 86400);
const Hours = Math.floor(ToTalSeconds / 3600);
const Minutes = Math.floor(ToTalSeconds / 60);
const Seconds = Math.floor(ToTalSeconds % 60);

if (message.content == "tmb!uptime") {
        message.channel.send(`${Days} Giorni, ${Hours} Ore, ${Minutes} Minuti, ${Seconds} Secondi`)
        
     //it doesn't work for me




Typescript

Related
which electromagnetic radiation is used for heating and night vision equipment Code Example which electromagnetic radiation is used for heating and night vision equipment Code Example
Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. Code Example Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. Code Example
ts number addition is concatenating like strings Code Example ts number addition is concatenating like strings Code Example
who indirectly elects the president Code Example who indirectly elects the president Code Example
mongodb update all items in array Code Example mongodb update all items in array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8