Commit 5ff39796 authored by Imran Hussain's avatar Imran Hussain
Browse files

add some more startup info when bot is ready

parent 6e06c05e
Pipeline #639 passed with stages
in 56 seconds
module.exports = (client) => {
console.log(`Logged in as ${client.user.tag}!`);
console.log(`Ready to serve on ${client.guilds.size} servers, for ${client.users.size-1} users.`);
console.log(`Ready to serve on ${client.guilds.size} servers, for ${client.users.size} users.`);
console.log('');
// console.log(client.guilds);
client.guilds.forEach( async (server) => {
// console.log(server);
console.log('Connected to server: ' + server.name);
console.log(' - Server Owner: ' + (await client.fetchUser(server.owner)).username);
console.log(' - Users: ' + server.memberCount);
console.log(' - Users Online: ' + server.presences.size);
console.log(' - Users that are Bots: ' + server.members.filter((member) => member.user.bot).size);
console.log(' - Role: ' + server.me.highestRole.name);
});
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment