From 1afb6109124be69c508d480ea03cffb2364fb801 Mon Sep 17 00:00:00 2001 From: baz Date: Sat, 20 Apr 2024 16:28:16 +0100 Subject: [PATCH] Updates to /globalbeatlist --- commands/100-games/globalbeatlist.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/100-games/globalbeatlist.js b/commands/100-games/globalbeatlist.js index 508239a..0b3d1d6 100644 --- a/commands/100-games/globalbeatlist.js +++ b/commands/100-games/globalbeatlist.js @@ -14,6 +14,8 @@ module.exports = { const beatenGamesDatabaseEntries = await getAllBeatenGames(); let desc = ''; + desc = desc.concat('__Total: ', beatenGamesDatabaseEntries.length, '__\n'); + if (!beatenGamesDatabaseEntries || beatenGamesDatabaseEntries.length == 0) { desc = 'No games beaten yet.'; } else { @@ -27,9 +29,8 @@ module.exports = { const embed = new EmbedBuilder() .setColor(0x6441a5) - .setAuthor({ name: `${user.displayName}`, iconURL: user.avatarURL() }) .setThumbnail(interaction.client.user.avatarURL()) - .setTitle('Global Beat List') + .setTitle('The 100 Games Challenge Global Beat List') .setDescription(desc) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp();