This commit is contained in:
Daniel Odendahl Jr
2017-06-17 03:44:36 +00:00
parent 202a78be0c
commit 29d875612d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = class RockPaperScissorsCommand extends Command {
});
}
run(msg, args) {
run(msg, args) { // eslint-disable-line consistent-return
const { choice } = args;
const response = choices[Math.floor(Math.random() * choices.length)];
if (choice === 'rock') {
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = class TemperatureCommand extends Command {
});
}
run(msg, args) {
run(msg, args) { // eslint-disable-line consistent-return
const { base, to, amount } = args;
if (base === to) {
return msg.say(`Converting ${base} to ${to} is the same value, dummy.`);
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class RandomNameCommand extends Command {
});
}
run(msg, args) {
run(msg, args) { // eslint-disable-line consistent-return
const { gender } = args;
const lastName = lastNames[Math.floor(Math.random() * lastNames.length)];
if (gender === 'male') {