mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Fix this
This commit is contained in:
@@ -34,7 +34,7 @@ module.exports = class RandomNameCommand extends Command {
|
|||||||
} else if (gender === 'both') {
|
} else if (gender === 'both') {
|
||||||
const genders = ['male', 'female'];
|
const genders = ['male', 'female'];
|
||||||
const rGender = genders[Math.floor(Math.random() * genders.length)];
|
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}`);
|
else if (rGender === 'female') return msg.say(`${female[Math.floor(Math.random() * female.length)]} ${lastName}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user