mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
return and await
This commit is contained in:
@@ -29,13 +29,13 @@ module.exports = class RandomNameGen extends commando.Command {
|
||||
let randomFirstBoth = [randomFirstMale, randomFirstFemale];
|
||||
randomFirstBoth = randomFirstBoth[Math.floor(Math.random() * randomFirstBoth.length)];
|
||||
if (message.content.toLowerCase().split(" ").slice(1).includes("male")) {
|
||||
message.channel.send(`${randomFirstMale} ${randomLast}`);
|
||||
return message.channel.send(`${randomFirstMale} ${randomLast}`);
|
||||
}
|
||||
else if (message.content.toLowerCase().split(" ").slice(1).includes("female")) {
|
||||
message.channel.send(`${randomFirstFemale} ${randomLast}`);
|
||||
return message.channel.send(`${randomFirstFemale} ${randomLast}`);
|
||||
}
|
||||
else {
|
||||
message.channel.send(`${randomFirstBoth} ${randomLast}`);
|
||||
return message.channel.send(`${randomFirstBoth} ${randomLast}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user