This commit is contained in:
Daniel Odendahl Jr
2019-03-11 17:08:26 +00:00
parent 0ef777da4e
commit 0fd66ba572
+1 -1
View File
@@ -66,7 +66,7 @@ module.exports = class SortingHatCommand extends Command {
You are a member of... **${houses[houseResult[0]]}**!
_${descriptions[houseResult[0]]}_
${houseResult.map(house => `${houses[house]}: ${Math.round(points[house] / totalPoints)}%`).join('\n')}
${houseResult.map(house => `${houses[house]}: ${Math.round((points[house] / totalPoints) * 100)}%`).join('\n')}
`);
} catch (err) {
this.playing.delete(msg.channel.id);