1
0
Fork 0

Fixed more shit

refactor/models
Bsian 2019-10-28 21:45:31 +00:00
parent 935d2147d3
commit 9703ecb4b6
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export default class CWG extends Command {
args[5] should be the path to the x509 key; not required args[5] should be the path to the x509 key; not required
*/ */
if (args[0] === 'create') { if (args[0] === 'create') {
if (!args[5]) return this.client.commands.get('help').run(message, [this.name]); if (!args[3]) return this.client.commands.get('help').run(message, [this.name]);
const account = await this.client.db.Account.findOne({ $or: [{ account: args[1] }, { userID: args[1] }] }); const account = await this.client.db.Account.findOne({ $or: [{ account: args[1] }, { userID: args[1] }] });
if (!account) return message.channel.createMessage(`${this.client.stores.emojis.error} Cannot locate account, please try again.`); if (!account) return message.channel.createMessage(`${this.client.stores.emojis.error} Cannot locate account, please try again.`);
try { try {