Did lots of things

This commit is contained in:
Emily 2020-04-11 19:30:51 +10:00
parent 2e85c85d3c
commit ba0448c905
11 changed files with 115 additions and 112 deletions

View file

@ -4,15 +4,16 @@ exports.conf = {
guildOnly: false,
aliases: [],
permLevel: 'User',
requiredPerms: []
requiredPerms: [],
cooldown: 2000
}
exports.help = {
name: 'ship',
category: 'Fun',
description: 'Ship two people together <3',
usage: 'ship [name/user] [name/user]',
params: ''
usage: 'ship `[name1]` `[name2]`',
parameters: '`name1` The name of the first person you want to ship.\n `name` The name of the second person you want to ship.'
}
const { MessageEmbed } = require('discord.js')
@ -28,8 +29,12 @@ exports.run = async (client, message, args, level, data) => {
'💜'
]
if (args.length < 2) {
return message.channel.send('<:error:466995152976871434> Please include two names/users.')
if (!args[0]) {
return message.channel.send(client.userError(exports, 'Missing argument, the `name1` argument is required!'))
}
if (!args[1]) {
return message.channel.send(client.userError(exports, 'Missing argument, the `name2` argument is required!'))
}
const firstName = args[0]