UNPKG

solara-testing-beta

Version:

A modern, customizable, and lightweight Discord framework.

35 lines • 2.75 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const discord_js_1 = require("discord.js"); const chalk_1 = __importDefault(require("chalk")); exports.default = { name: discord_js_1.Events.ClientReady, async execute(client) { if (!client.user || !client.application) { console.error("āŒ Client user or application is missing on ready event."); return; } await client.commandHandler.registerSlashCommands(); const guilds = client.guilds.cache.size; const users = client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0); const commands = client.commandHandler.commands.size; const functions = client.functionManager.functions.size; console.log(chalk_1.default.bold.cyanBright('\nšŸš€ Solara Client is Online! šŸš€\n')); console.log(chalk_1.default.blueBright('════════════════════════════════════')); console.log(`${chalk_1.default.green('ā—‰')} ${chalk_1.default.bold('Bot Tag:')} ${chalk_1.default.yellow(client.user.tag)}`); console.log(`${chalk_1.default.green('ā—‰')} ${chalk_1.default.bold('Bot ID:')} ${chalk_1.default.yellow(client.user.id)}`); console.log(`${chalk_1.default.green('ā—‰')} ${chalk_1.default.bold('Guilds:')} ${chalk_1.default.yellow(guilds)}`); console.log(`${chalk_1.default.green('ā—‰')} ${chalk_1.default.bold('Users:')} ${chalk_1.default.yellow(users)}`); console.log(`${chalk_1.default.green('ā—‰')} ${chalk_1.default.bold('Commands:')} ${chalk_1.default.yellow(commands)}`); console.log(`${chalk_1.default.green('ā—‰')} ${chalk_1.default.bold('Functions:')} ${chalk_1.default.yellow(functions)}`); console.log(`${chalk_1.default.green('ā—‰')} ${chalk_1.default.bold('Prefix:')} ${chalk_1.default.yellow(Array.isArray(client.solaraOptions.prefix) ? client.solaraOptions.prefix.join(', ') : client.solaraOptions.prefix)}`); console.log(`${chalk_1.default.green('ā—‰')} ${chalk_1.default.bold('Node.js:')} ${chalk_1.default.yellow(process.version)}`); console.log(`${chalk_1.default.green('ā—‰')} ${chalk_1.default.bold('Discord.js:')} ${chalk_1.default.yellow(require('discord.js').version)}`); console.log(chalk_1.default.blueBright('════════════════════════════════════\n')); console.log(chalk_1.default.cyan(`✨ ${client.user.username} is ready to serve!`)); }, }; //# sourceMappingURL=ready.js.map