Fix some bugs

This commit is contained in:
Skylar Grant 2023-01-25 23:17:07 -05:00
parent 2627cc24b1
commit d6eac632e8

View File

@ -204,7 +204,7 @@ const functions = {
// Determine if this tree is the guild's tree
if (leaderboardEntry.hasPin) {
comparisonReplyString += `#{leaderboardEntry.treeRank} - This is your tree`;
comparisonReplyString += `#${leaderboardEntry.treeRank} - This is your tree`;
} else { // If it's another guild's tree
// Calculate the current height difference
const currentHeightDifference = guildInfo.treeHeight - leaderboardEntry.treeHeight;
@ -214,9 +214,9 @@ const functions = {
} else {
comparisonReplyString += `#${leaderboardEntry.treeRank} - ${Math.abs(currentHeightDifference).toFixed(1)}ft shorter`;
}
// Build a string using the current leaderboard entry and the historic entry from 24 hours ago
comparisonReplyString += ` ${statusIndicator}\n`;
}
// Build a string using the current leaderboard entry and the historic entry from 24 hours ago
comparisonReplyString += ` ${statusIndicator}\n`;
}
return comparisonReplyString;
} catch (err) {