update
This commit is contained in:
parent
b0c43b749d
commit
9797096b84
@ -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`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user