From 374a4eda95fcc0d81bab83c534818f6f4422540b Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Wed, 28 Nov 2018 19:38:57 +0100 Subject: [PATCH] fixed stupid error --- commands/fun/random.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/random.js b/commands/fun/random.js index bdce0fc..32be6d1 100644 --- a/commands/fun/random.js +++ b/commands/fun/random.js @@ -42,7 +42,7 @@ module.exports = class RandomCommand extends Command { text = text.replace(/\[noun\]/, noun[randNumber(noun)]) text = text.replace(/\[adjective\]/, adjective[randNumber(adjective)]) text = text.replace(/\[member\]/, message.guild.members.random().user.username) - } while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]' || text.includes('[member]' || text-includes('[adjectives]'))) ) + } while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]') || text.includes('[member]') ) // Send the final text message.say(text);