Update uses of Games to Game(s)
This commit is contained in:
parent
e9a6e40170
commit
2cdf9fcab2
|
@ -64,9 +64,9 @@ module.exports = {
|
||||||
embed.setThumbnail(`${coverUrl}`);
|
embed.setThumbnail(`${coverUrl}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
embed.addFields({ name: 'Planned', value: `${planNum} games`, inline: true });
|
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true });
|
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true });
|
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
|
||||||
|
|
||||||
await interaction.followUp({ embeds: [embed] });
|
await interaction.followUp({ embeds: [embed] });
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ module.exports = {
|
||||||
.setColor(0xFF0000)
|
.setColor(0xFF0000)
|
||||||
.setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() })
|
.setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() })
|
||||||
.setTitle(`${game.name} deleted!`)
|
.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() })
|
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ module.exports = {
|
||||||
.setColor(0xFF0000)
|
.setColor(0xFF0000)
|
||||||
.setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() })
|
.setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() })
|
||||||
.setTitle(`${game.name} deleted!`)
|
.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() })
|
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ module.exports = {
|
||||||
.setColor(0xFF0000)
|
.setColor(0xFF0000)
|
||||||
.setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() })
|
.setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() })
|
||||||
.setTitle(`${game.name} deleted!`)
|
.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() })
|
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
|
|
|
@ -53,9 +53,9 @@ module.exports = {
|
||||||
.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: 'Planned', value: `${planNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true });
|
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true });
|
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
|
||||||
|
|
||||||
if (game.cover) {
|
if (game.cover) {
|
||||||
const coverUrl = await getCoverURL(game.cover);
|
const coverUrl = await getCoverURL(game.cover);
|
||||||
|
|
|
@ -42,9 +42,9 @@ module.exports = {
|
||||||
embed.setThumbnail(`${coverUrl}`);
|
embed.setThumbnail(`${coverUrl}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
embed.addFields({ name: 'Planned', value: `${planNum} games`, inline: true });
|
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true });
|
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true });
|
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
|
||||||
|
|
||||||
return interaction.reply({ embeds: [embed] });
|
return interaction.reply({ embeds: [embed] });
|
||||||
},
|
},
|
||||||
|
|
|
@ -42,9 +42,9 @@ module.exports = {
|
||||||
embed.setThumbnail(`${coverUrl}`);
|
embed.setThumbnail(`${coverUrl}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
embed.addFields({ name: 'Planned', value: `${planNum} games`, inline: true });
|
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true });
|
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true });
|
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
|
||||||
|
|
||||||
return interaction.reply({ embeds: [embed] });
|
return interaction.reply({ embeds: [embed] });
|
||||||
},
|
},
|
||||||
|
|
|
@ -42,9 +42,9 @@ module.exports = {
|
||||||
embed.setThumbnail(`${coverUrl}`);
|
embed.setThumbnail(`${coverUrl}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
embed.addFields({ name: 'Planned', value: `${planNum} games`, inline: true });
|
embed.addFields({ name: 'Planned', value: `${planNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true });
|
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true });
|
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
|
||||||
|
|
||||||
return interaction.reply({ embeds: [embed] });
|
return interaction.reply({ embeds: [embed] });
|
||||||
},
|
},
|
||||||
|
|
|
@ -56,9 +56,9 @@ module.exports = {
|
||||||
.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: 'Planned', value: `${planNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Now Playing', value: `${playNum} games`, inline: true });
|
embed.addFields({ name: 'Now Playing', value: `${playNum} game(s)`, inline: true });
|
||||||
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} games remaining)`, inline: true });
|
embed.addFields({ name: 'Beaten', value: `${beatNum}/100 (${100 - beatNum} game(s) remaining)`, inline: true });
|
||||||
|
|
||||||
if (game.cover) {
|
if (game.cover) {
|
||||||
const coverUrl = await getCoverURL(game.cover);
|
const coverUrl = await getCoverURL(game.cover);
|
||||||
|
|
|
@ -31,9 +31,9 @@ module.exports = {
|
||||||
embed.setTitle(`User Info for ${user.displayName}`);
|
embed.setTitle(`User Info for ${user.displayName}`);
|
||||||
embed.setThumbnail(user.avatarURL());
|
embed.setThumbnail(user.avatarURL());
|
||||||
|
|
||||||
if (planNum >= 0) embed.addFields({ name: 'Planned', value: `${planNum} games`, 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} games`, 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} games remaining)`, 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 (gameDatabaseEntry) embed.addFields({ name: 'Last Beat Game', value: `${gameDatabaseEntry.name}`, inline: true });
|
||||||
|
|
||||||
if (beatenGamesDatabaseEntries && beatenGamesDatabaseEntries.length > 0) {
|
if (beatenGamesDatabaseEntries && beatenGamesDatabaseEntries.length > 0) {
|
||||||
|
|
Loading…
Reference in New Issue