welcome users, gamertag link, other general modifications

This commit is contained in:
SowinskiBraeden committed 2023-03-20 13:47:37 -07:00
1 parent d55096e7e1
commit 972c16557a
15 files changed
+402 -48

No files matched your search

+19 -4
View File
@@ -37,9 +37,9 @@ module.exports = {
type: 1,
},
{
name: "version",
description: "Current version of the bot",
value: "version",
name: "stats",
description: "Current Bot Statistics",
value: "stats",
type: 1,
}
],
@@ -52,7 +52,7 @@ module.exports = {
* @param {*} param3
*/
run: async (client, interaction, args) => {
run: async (client, interaction, args, start) => {
if (args[0].name == 'version') {
const versionEmbed = new EmbedBuilder()
.setTitle(`Current DayzArmbands Version`)
@@ -137,6 +137,21 @@ module.exports = {
`);
return interaction.send({ embeds: [creditsEmbed] })
} else if (args[0].name == 'stats') {
const end = new Date().getTime();
const stats = new EmbedBuilder()
.setColor(client.config.Colors.Default)
.setTitle('QuarksBot Statistics')
.addFields(
{ name: 'Guilds', value: `${client.guilds.cache.size}`, inline: true },
{ name: 'Users', value: `${client.users.cache.size}`, inline: true },
{ name: 'Latency', value: `${end - start}ms`, inline: true },
{ name: 'Uptime', value: `${client.secondsToDhms(process.uptime().toFixed(2))}`, inline: true },
{ name: 'Bot Version', value: `${client.config.Dev} v${client.config.Version}`, inline: true },
{ name: 'Discord Version', value: 'Discord.js v14.3.0', inline: true },
)
return interaction.send({ embeds: [stats] })
}
},
},