This repository has been archived on 2024-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
discord.js-rr-bot/Src/Events/Client/ReadyClient.js
2022-06-18 23:28:38 -04:00

62 lines
No EOL
2.2 KiB
JavaScript

const chalk = require("chalk")
const Box = require("cli-box")
module.exports = {
name: "ready",
once: true,
run: async(client) => {
client.user.setActivity('E', {
type: `WATCHING`,
})
const ClientBox = new Box({
w: Math.floor(client.user.tag.length + 27 ),
h: 7,
stringify: false,
marks: {
nw: '╭',
n: '─',
ne: '╮',
e: '│',
se: '╯',
s: '─',
sw: '╰',
w: '│'
},
hAlign: 'left',
}, `C L I E N T I N F O R M A T I O N
Client Details :: ${client.user.tag}
Guilds Count :: ${client.guilds.cache.size}
User Count :: ${client.users.cache.size}
NodeJS Version :: ${process.version}
`).stringify()
const CommandsBox = new Box({
w: Math.floor(`Initiating ${client.commands.messageCommands.aliases.size} messageCommands Aliases.`.length + 37),
h: 8,
stringify: false,
marks: {
nw: '╭',
n: '─',
ne: '╮',
e: '│',
se: '╯',
s: '─',
sw: '╰',
w: '│'
},
hAlign: "left",
}, `C O M M A N D S I N F O R M A T I O N
MessageCommands :: Initiating ${client.commands.messageCommands.size} messageCommands.
MessageCommands Aliases :: Initiating ${client.commands.messageCommands.aliases.size} messageCommands Aliases.
SlashCommands :: Initiating ${client.commands.slashCommands.size} slashCommands.
SelectMenus :: Initiating ${client.commands.selectMenus.size} selectMenus.
ContextMenus :: Initiating ${client.commands.contextMenus.size} contextMenus.
ButtonCommands :: Initiating ${client.commands.buttonCommands.size} buttonCommands.
Client Events :: Initiating ${client.events.size} events.
`).stringify()
console.log(chalk.bold.greenBright(ClientBox))
console.log(chalk.bold.blueBright(CommandsBox))
}
}