Allow reference in the singular for a 1 die roll

This commit is contained in:
Michael 2022-12-16 21:58:51 -05:00
parent 08561a856a
commit 9cee18dcdd

View file

@ -65,6 +65,11 @@ module.exports = {
lotteryNumbers.push(randomInt(1, maxRoll));
}
await interaction.reply({ content: `Your lucky numbers are...\n${lotteryNumbers.toString().split(',').join(', ')}.`, ephemeral: (isEphemeral === 'true') });
if (rollCount === 1) {
await interaction.reply({ content: `Your lucky number is...\n${lotteryNumbers.toString().split(',').join(', ')}.`, ephemeral: (isEphemeral === 'true') });
}
else {
await interaction.reply({ content: `Your lucky numbers are...\n${lotteryNumbers.toString().split(',').join(', ')}.`, ephemeral: (isEphemeral === 'true') });
}
},
};