Compare commits

...

2 Commits

Author SHA1 Message Date
baz 840a70bbd4 Add footer to user command 2024-03-18 20:47:58 +00:00
baz 2cdf9fcab2 Update uses of Games to Game(s) 2024-03-18 20:47:32 +00:00
10 changed files with 25 additions and 24 deletions

View File

@ -64,9 +64,9 @@ 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 });
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
await interaction.followUp({ embeds: [embed] });

View File

@ -38,7 +38,7 @@ module.exports = {
.setColor(0xFF0000)
.setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() })
.setTitle(`${game.name} deleted!`)
.setDescription(`${interaction.user.displayName} has ${planNum} games planned, they are playing ${playNum} games, they have beaten ${beatNum} games, they have ${100 - beatNum} games remaining.`)
.setDescription(`${interaction.user.displayName} has ${planNum} game(s) planned, they are playing ${playNum} game(s), they have beaten ${beatNum} game(s), they have ${100 - beatNum} game(s) remaining.`)
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
.setTimestamp();

View File

@ -38,7 +38,7 @@ module.exports = {
.setColor(0xFF0000)
.setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() })
.setTitle(`${game.name} deleted!`)
.setDescription(`${interaction.user.displayName} has ${planNum} games planned, they are playing ${playNum} games, they have beaten ${beatNum} games, they have ${100 - beatNum} games remaining.`)
.setDescription(`${interaction.user.displayName} has ${planNum} game(s) planned, they are playing ${playNum} game(s), they have beaten ${beatNum} game(s), they have ${100 - beatNum} game(s) remaining.`)
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
.setTimestamp();

View File

@ -38,7 +38,7 @@ module.exports = {
.setColor(0xFF0000)
.setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() })
.setTitle(`${game.name} deleted!`)
.setDescription(`${interaction.user.displayName} has ${planNum} games planned, they are playing ${playNum} games, they have beaten ${beatNum} games, they have ${100 - beatNum} games remaining.`)
.setDescription(`${interaction.user.displayName} has ${planNum} game(s) planned, they are playing ${playNum} game(s), they have beaten ${beatNum} game(s), they have ${100 - beatNum} game(s) remaining.`)
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
.setTimestamp();

View File

@ -53,9 +53,9 @@ module.exports = {
.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 });
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
if (game.cover) {
const coverUrl = await getCoverURL(game.cover);

View File

@ -42,9 +42,9 @@ 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 });
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
return interaction.reply({ embeds: [embed] });
},

View File

@ -42,9 +42,9 @@ 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 });
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
return interaction.reply({ embeds: [embed] });
},

View File

@ -42,9 +42,9 @@ 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 });
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
return interaction.reply({ embeds: [embed] });
},

View File

@ -56,9 +56,9 @@ module.exports = {
.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 });
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
if (game.cover) {
const coverUrl = await getCoverURL(game.cover);

View File

@ -30,10 +30,11 @@ module.exports = {
embed.setColor(0x6441a5);
embed.setTitle(`User Info for ${user.displayName}`);
embed.setThumbnail(user.avatarURL());
embed.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() });
if (planNum >= 0) embed.addFields({ name: 'Planned', value: `${planNum} games`, inline: true });
if (playNum >= 0) embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true });
if (beatNum >= 0) embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true });
if (planNum >= 0) embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
if (playNum >= 0) embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
if (beatNum >= 0) embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
if (gameDatabaseEntry) embed.addFields({ name: 'Last Beat Game', value: `${gameDatabaseEntry.name}`, inline: true });
if (beatenGamesDatabaseEntries && beatenGamesDatabaseEntries.length > 0) {