mirror of
https://github.com/MrUnknownDE/UnknownAI.git
synced 2026-04-19 06:23:45 +02:00
push 2
This commit is contained in:
15
events/client/ready.js
Normal file
15
events/client/ready.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const { PREFIX } = require('../../configs/config.json');
|
||||
const moment = require('moment');
|
||||
const chalk = require("chalk")
|
||||
|
||||
module.exports = async client => {
|
||||
let totalUsers = client.guilds.cache.reduce((users , value) => users + value.memberCount, 0);
|
||||
let totalGuilds = client.guilds.cache.size
|
||||
let totalChannels = client.channels.cache.size
|
||||
|
||||
console.log(chalk.red`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Active, Commands Loaded!`);
|
||||
console.log(chalk.red`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: ${client.user.username} Logged In!`);
|
||||
client.user.setPresence({ activity: { name: `${totalUsers} Users`, type: "PLAYING" }, status: "online" });
|
||||
console.log(chalk.blue`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Now ` + totalChannels + ` channels, ` + totalGuilds + ` Servers and ` + totalUsers + ` serving users!`);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user