This commit is contained in:
Raven Scott 2023-04-03 02:43:44 +02:00
parent b0c43b749d
commit 9797096b84

View File

@ -119,10 +119,10 @@ module.exports = {
} else { } else {
const parsedRepeatPenalty = parseFloat(userInputRepeatPenalty); const parsedRepeatPenalty = parseFloat(userInputRepeatPenalty);
if (parsedRepeatPenalty >= 0.1 && parsedRepeatPenalty <= 2) { if (parsedRepeatPenalty >= 0.1 && parsedRepeatPenalty <= 2) {
// temperature is within range // RepeatPenalty is within range
repeatPenalty = parsedRepeatPenalty; repeatPenalty = parsedRepeatPenalty;
} else { } else {
// temperature is outside of range // RepeatPenalty is outside of range
return interaction.followUp(`Repeat Penalty must be between 0.1 and 2`); return interaction.followUp(`Repeat Penalty must be between 0.1 and 2`);
} }
} }