Change Variable Names, Remove Useless Commands

This commit is contained in:
Daniel Odendahl Jr
2017-04-29 19:53:01 +00:00
parent 3c773a8952
commit 988912f471
52 changed files with 236 additions and 312 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ module.exports = class CoinFlipCommand extends Command {
}
run(message) {
const coin = sides[Math.floor(Math.random() * sides.length)];
return message.say(`It landed on ${coin}!`);
const side = sides[Math.floor(Math.random() * sides.length)];
return message.say(`It landed on ${side}!`);
}
};
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = class RandomNameCommand extends Command {
return true;
return 'Please enter either `male` or `female`.';
},
parse: text => text.toLowerCase()
parse: gender => gender.toLowerCase()
}]
});
}
+2 -2
View File
@@ -15,7 +15,7 @@ module.exports = class QuantumCoinCommand extends Command {
}
run(message) {
const qcoin = sides[Math.floor(Math.random() * sides.length)];
return message.say(`It landed ${qcoin}.`);
const side = sides[Math.floor(Math.random() * sides.length)];
return message.say(`It landed ${side}.`);
}
};
+2 -2
View File
@@ -20,7 +20,7 @@ module.exports = class ShipCommand extends Command {
run(message, args) {
const { things } = args;
const percentage = Math.floor(Math.random() * 100) + 1;
return message.say(`I'd give ${things} a ${percentage}%!`);
const rating = Math.floor(Math.random() * 100) + 1;
return message.say(`I'd give ${things} a ${rating}%!`);
}
};