From bf850264450662b94ca3a8c250ef7e56adca14c0 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Fri, 18 Dec 2020 11:51:59 -0700 Subject: [PATCH] fix it for real this time --- commands/setstatus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/setstatus.js b/commands/setstatus.js index 8ea1598..6c100f7 100644 --- a/commands/setstatus.js +++ b/commands/setstatus.js @@ -32,10 +32,10 @@ module.exports = { new Tag(['s', 'status', 'm', 'msg', 'message'], 'status', 'append'), new Tag(['t', 'type'], 'type', 'append') ]).test(args.join(" ")); - if ((!options.status || !options.status.length) || (!options.type || !options.type.length)) {return message.channel.send("You must use -status and -type tags!");} + if (!options.status || !options.status.length) {return message.channel.send("You must use the -status tag (and -type if you want a custom type)!");} if (options.status.length > 30) {return message.reply("That status is a bit too long.");} - if (options.type) {if (!['playing', 'watching', 'listening'].includes(options.status.toLowerCase())) {return message.channel.send("That's not a valid type!");}} + if (options.type) {if (!['playing', 'watching', 'listening'].includes(options.type.toLowerCase())) {return message.channel.send("That's not a valid type!");}} if (options.type) {client.user.setActivity(options.status, {type: options.type.toUpperCase()});} else {client.user.setActivity(options.status);}