Update description for game logging commands

This commit is contained in:
baz 2024-03-01 17:03:30 +00:00
parent b8c5919be1
commit 05489c18ee
4 changed files with 17 additions and 5 deletions

View File

@ -56,7 +56,6 @@ module.exports = {
.setColor(0xFFD700) .setColor(0xFFD700)
.setAuthor({ name: `${interaction.user.displayName} beat a new game!`, iconURL: interaction.user.avatarURL() }) .setAuthor({ name: `${interaction.user.displayName} beat a new game!`, iconURL: interaction.user.avatarURL() })
.setTitle(`${game.name} beaten!`) .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() }) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
.setTimestamp(); .setTimestamp();
@ -65,6 +64,10 @@ module.exports = {
embed.setThumbnail(`${coverUrl}`); 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] }); await interaction.followUp({ embeds: [embed] });
if (beatNum == 100) { if (beatNum == 100) {

View File

@ -50,10 +50,13 @@ module.exports = {
.setColor(0x43ABEC) .setColor(0x43ABEC)
.setAuthor({ name: `${interaction.user.displayName} is planning to beat a game!`, iconURL: interaction.user.avatarURL() }) .setAuthor({ name: `${interaction.user.displayName} is planning to beat a game!`, iconURL: interaction.user.avatarURL() })
.setTitle(`${game.name}!`) .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() }) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
.setTimestamp(); .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) { if (game.cover) {
const coverUrl = await getCoverURL(game.cover); const coverUrl = await getCoverURL(game.cover);
embed.setThumbnail(`${coverUrl}`); embed.setThumbnail(`${coverUrl}`);

View File

@ -35,14 +35,17 @@ module.exports = {
.setAuthor({ name: `${user.displayName}'s most recent beat game!`, iconURL: user.avatarURL() }) .setAuthor({ name: `${user.displayName}'s most recent beat game!`, iconURL: user.avatarURL() })
.setTitle(game.name) .setTitle(game.name)
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
.setTimestamp() .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.`);
if (game.cover) { if (game.cover) {
const coverUrl = await getCoverURL(game.cover); const coverUrl = await getCoverURL(game.cover);
embed.setThumbnail(`${coverUrl}`); 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] }); return interaction.reply({ embeds: [embed] });
}, },
}; };

View File

@ -53,10 +53,13 @@ module.exports = {
.setColor(0x00C921) .setColor(0x00C921)
.setAuthor({ name: `${interaction.user.displayName} has started playing a new game!`, iconURL: interaction.user.avatarURL() }) .setAuthor({ name: `${interaction.user.displayName} has started playing a new game!`, iconURL: interaction.user.avatarURL() })
.setTitle(`${game.name}!`) .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() }) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
.setTimestamp(); .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) { if (game.cover) {
const coverUrl = await getCoverURL(game.cover); const coverUrl = await getCoverURL(game.cover);
embed.setThumbnail(`${coverUrl}`); embed.setThumbnail(`${coverUrl}`);