Clearer handling of first /compare

This commit is contained in:
Skylar Grant 2023-01-23 21:42:22 -05:00
parent e484bf9962
commit 14d46a8b29

View File

@ -147,7 +147,7 @@ const functions = {
}, },
compare(interaction) { compare(interaction) {
if (guildInfo[interaction.guildId] == undefined) { if (guildInfo[interaction.guildId] == undefined) {
return `Please reset the reference messages! (${interaction.guildId})`; return strings.error.noGuild;
} }
let treeHeight = parseFloat(guildInfo[interaction.guildId].treeHeight).toFixed(1); let treeHeight = parseFloat(guildInfo[interaction.guildId].treeHeight).toFixed(1);
if ((guildInfo[interaction.guildId].rankings.length > 0) && (treeHeight > 0)) { if ((guildInfo[interaction.guildId].rankings.length > 0) && (treeHeight > 0)) {