mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
Huge Array Change
This commit is contained in:
@@ -17,7 +17,8 @@ class OffspringCommand extends commando.Command {
|
||||
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
let gender = ['boy', 'girl'][Math.floor(Math.random() * 2)];
|
||||
let gender = ['boy', 'girl'];
|
||||
gender = gender[Math.floor(Math.random() * gender.length)];
|
||||
message.channel.sendMessage("It's a " + gender + "!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user