client.on('ready', () => {
console.log('Клиент готов!')
command(client, ['test', 'ping'], message => {
message.channel.send('Pong!')
})
command(client, 'servers', message => {
client.guilds.cachce.forEach((guild) => {
message.channel.send(`
${guild.name}, количество участников ${guild.memberCount}`
)
})
})
})