“Befehl diskord.js Statistiken” Code-Antworten

Befehl desendes js Statistiken

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);
    }
})
Undefined

Befehl diskord.js Statistiken

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
Lory Pelli

Ähnliche Antworten wie “Befehl diskord.js Statistiken”

Fragen ähnlich wie “Befehl diskord.js Statistiken”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen