Updates to /globalbeatlist

This commit is contained in:
baz 2024-04-20 16:28:16 +01:00
parent 24f437bedc
commit 1afb610912
1 changed files with 3 additions and 2 deletions

View File

@ -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();