discord js stats command

Solutions on MaxInterview for discord js stats command by the best coders in the world

showing results for - "discord js stats command"
Deborah
15 Jun 2018
1client.on('message', message => {
2    if (message.content.toLowerCase().startsWith(prefix + 'stats')){
3        if(message.author.bot) return;
4        const exampleEmbed = new Discord.MessageEmbed()
5            .setColor('RANDOM')
6            .setTitle("Bot's Live Status")
7            .addField(" \u200B ", "**Channels** : ` " + `${client.channels.cache.size}` + " `")
8            .addField(" \u200B ", "**Servers** : ` " + `${client.guilds.cache.size}` + " `")
9            .addField(" \u200B ", "**Users** : ` " + `${client.users.cache.size}` + " `")
10        message.channel.send(exampleEmbed);
11    }
12})