This commit is contained in:
Daniel Odendahl Jr
2019-03-11 17:18:46 +00:00
parent d50afc2d2b
commit 0cad89f232
+1 -1
View File
@@ -61,7 +61,7 @@ module.exports = class SortingHatCommand extends Command {
}
const houseResult = Object.keys(points).filter(h => points[h] > 0).sort((a, b) => points[b] - points[a]);
this.playing.delete(msg.channel.id);
const totalPoints = houseResult.reduce((a, b) => a + b, 0);
const totalPoints = houseResult.reduce((a, b) => a + points[b], 0);
return msg.say(stripIndents`
You are a member of... **${houses[houseResult[0]]}**!
_${descriptions[houseResult[0]]}_