Space after conditionals

This commit is contained in:
Daniel Odendahl Jr
2017-05-08 13:46:36 +00:00
parent 7e20086b2a
commit 8ba552b21a
78 changed files with 313 additions and 379 deletions
+1 -4
View File
@@ -5,10 +5,7 @@ module.exports = class CoinFlipCommand extends Command {
constructor(client) {
super(client, {
name: 'coin',
aliases: [
'coin-flip',
'flip'
],
aliases: ['coin-flip', 'flip'],
group: 'response',
memberName: 'coin',
description: 'Flips a coin.'
+3 -3
View File
@@ -14,7 +14,7 @@ module.exports = class RandomNameCommand extends Command {
prompt: 'Which gender do you want to generate a name for?',
type: 'string',
validate: gender => {
if(['male', 'female'].includes(gender.toLowerCase())) return true;
if (['male', 'female'].includes(gender.toLowerCase())) return true;
return 'Please enter either `male` or `female`.';
},
parse: gender => gender.toLowerCase()
@@ -26,10 +26,10 @@ module.exports = class RandomNameCommand extends Command {
run(msg, args) {
const { gender } = args;
const lastName = lastNames[Math.floor(Math.random() * lastNames.length)];
if(gender === 'male') {
if (gender === 'male') {
const name = maleNames[Math.floor(Math.random() * maleNames.length)];
return msg.say(`${name} ${lastName}`);
} else if(gender === 'female') {
} else if (gender === 'female') {
const name = femaleNames[Math.floor(Math.random() * femaleNames.length)];
return msg.say(`${name} ${lastName}`);
}
+1 -3
View File
@@ -5,9 +5,7 @@ module.exports = class QuantumCoinCommand extends Command {
constructor(client) {
super(client, {
name: 'quantum-coin',
aliases: [
'qcoin'
],
aliases: ['qcoin'],
group: 'response',
memberName: 'quantum-coin',
description: 'Flips a coin that lands on nothing.'
+1 -3
View File
@@ -4,9 +4,7 @@ module.exports = class RateWaifuCommand extends Command {
constructor(client) {
super(client, {
name: 'rate-waifu',
aliases: [
'waifu'
],
aliases: ['waifu'],
group: 'response',
memberName: 'rate-waifu',
description: 'Rates your Waifu.',
+1 -3
View File
@@ -4,9 +4,7 @@ module.exports = class RollCommand extends Command {
constructor(client) {
super(client, {
name: 'roll',
aliases: [
'dice'
],
aliases: ['dice'],
group: 'response',
memberName: 'roll',
description: 'Rolls a dice with a maximum value you specify.',
+1 -3
View File
@@ -4,9 +4,7 @@ module.exports = class ShipCommand extends Command {
constructor(client) {
super(client, {
name: 'ship',
aliases: [
'rate'
],
aliases: ['rate'],
group: 'response',
memberName: 'ship',
description: 'Ships things/people together.',