Compare commits

..

No commits in common. "1afb6109124be69c508d480ea03cffb2364fb801" and "85b0f549cd312837f8a723973c19cc28980f8c8d" have entirely different histories.

2 changed files with 2 additions and 14 deletions

View File

@ -14,8 +14,6 @@ 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 {
@ -29,8 +27,9 @@ module.exports = {
const embed = new EmbedBuilder()
.setColor(0x6441a5)
.setAuthor({ name: `${user.displayName}`, iconURL: user.avatarURL() })
.setThumbnail(interaction.client.user.avatarURL())
.setTitle('The 100 Games Challenge Global Beat List')
.setTitle('Global Beat List')
.setDescription(desc)
.setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() })
.setTimestamp();

View File

@ -15,17 +15,6 @@ module.exports = {
await leaderboard.sort((a, b) => parseInt(b.count) - parseInt(a.count));
let desc = '';
let count = 0;
for (let i = 0; i < leaderboard.length; i++) {
if (leaderboard[i].count > 0) {
count += leaderboard[i].count;
}
}
desc = desc.concat('__Total: ', count, '__');
for (let i = 0; i < leaderboard.length; i++) {
if (leaderboard[i].count > 0) {