From 05489c18ee54f4e871a388cb323adc8d32d72b88 Mon Sep 17 00:00:00 2001 From: baz Date: Fri, 1 Mar 2024 17:03:30 +0000 Subject: [PATCH] Update description for game logging commands --- commands/100-games/beatGame.js | 5 ++++- commands/100-games/planGame.js | 5 ++++- commands/100-games/recentbeat.js | 7 +++++-- commands/100-games/startplaying.js | 5 ++++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/commands/100-games/beatGame.js b/commands/100-games/beatGame.js index 8e15e1f..0a0c3f6 100644 --- a/commands/100-games/beatGame.js +++ b/commands/100-games/beatGame.js @@ -56,7 +56,6 @@ module.exports = { .setColor(0xFFD700) .setAuthor({ name: `${interaction.user.displayName} beat a new game!`, iconURL: interaction.user.avatarURL() }) .setTitle(`${game.name} beaten!`) - .setDescription(`${interaction.user.displayName} has ${planNum} games planned, they are playing ${playNum} games, they have beaten ${beatNum} games, they have ${100 - beatNum} games remaining.`) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); @@ -65,6 +64,10 @@ module.exports = { embed.setThumbnail(`${coverUrl}`); } + embed.addFields({ name: 'Planned', value: `${planNum} games`, inline: true }); + embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true }); + embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true }); + await interaction.followUp({ embeds: [embed] }); if (beatNum == 100) { diff --git a/commands/100-games/planGame.js b/commands/100-games/planGame.js index 59aef48..ca64229 100644 --- a/commands/100-games/planGame.js +++ b/commands/100-games/planGame.js @@ -50,10 +50,13 @@ module.exports = { .setColor(0x43ABEC) .setAuthor({ name: `${interaction.user.displayName} is planning to beat a game!`, iconURL: interaction.user.avatarURL() }) .setTitle(`${game.name}!`) - .setDescription(`${interaction.user.displayName} has ${planNum} games planned, they are playing ${playNum} games, they have beaten ${beatNum} games, they have ${100 - beatNum} games remaining.`) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); + embed.addFields({ name: 'Planned', value: `${planNum} games`, inline: true }); + embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true }); + embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true }); + if (game.cover) { const coverUrl = await getCoverURL(game.cover); embed.setThumbnail(`${coverUrl}`); diff --git a/commands/100-games/recentbeat.js b/commands/100-games/recentbeat.js index 57b932e..48d22a4 100644 --- a/commands/100-games/recentbeat.js +++ b/commands/100-games/recentbeat.js @@ -35,14 +35,17 @@ module.exports = { .setAuthor({ name: `${user.displayName}'s most recent beat game!`, iconURL: user.avatarURL() }) .setTitle(game.name) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) - .setTimestamp() - .setDescription(`${interaction.user.displayName} has ${planNum} games planned, they are playing ${playNum} games, they have beaten ${beatNum} games, they have ${100 - beatNum} games remaining.`); + .setTimestamp(); if (game.cover) { const coverUrl = await getCoverURL(game.cover); embed.setThumbnail(`${coverUrl}`); } + embed.addFields({ name: 'Planned', value: `${planNum} games`, inline: true }); + embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true }); + embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true }); + return interaction.reply({ embeds: [embed] }); }, }; \ No newline at end of file diff --git a/commands/100-games/startplaying.js b/commands/100-games/startplaying.js index b4cfaf6..38a3946 100644 --- a/commands/100-games/startplaying.js +++ b/commands/100-games/startplaying.js @@ -53,10 +53,13 @@ module.exports = { .setColor(0x00C921) .setAuthor({ name: `${interaction.user.displayName} has started playing a new game!`, iconURL: interaction.user.avatarURL() }) .setTitle(`${game.name}!`) - .setDescription(`${interaction.user.displayName} has ${planNum} games planned, they are playing ${playNum} games, they have beaten ${beatNum} games, they have ${100 - beatNum} games remaining.`) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); + embed.addFields({ name: 'Planned', value: `${planNum} games`, inline: true }); + embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true }); + embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true }); + if (game.cover) { const coverUrl = await getCoverURL(game.cover); embed.setThumbnail(`${coverUrl}`);