From 401fa04f5ea6ac0f42c67351dd3d630265a8cb21 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 16 Aug 2017 16:40:10 +0000 Subject: [PATCH] Fix this --- commands/random-res/name.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random-res/name.js b/commands/random-res/name.js index c0f98d2d..2d4a62b2 100644 --- a/commands/random-res/name.js +++ b/commands/random-res/name.js @@ -34,7 +34,7 @@ module.exports = class RandomNameCommand extends Command { } else if (gender === 'both') { const genders = ['male', 'female']; const rGender = genders[Math.floor(Math.random() * genders.length)]; - if (gender === 'male') return msg.say(`${male[Math.floor(Math.random() * male.length)]} ${lastName}`); + if (rGender === 'male') return msg.say(`${male[Math.floor(Math.random() * male.length)]} ${lastName}`); else if (rGender === 'female') return msg.say(`${female[Math.floor(Math.random() * female.length)]} ${lastName}`); } }