mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Space after conditionals
This commit is contained in:
@@ -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.'
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
@@ -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.'
|
||||
|
||||
@@ -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.',
|
||||
|
||||
@@ -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.',
|
||||
|
||||
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user