From 204bb8bcb10d90df9aaf68a1370b73d5f02162aa Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Wed, 28 Nov 2018 21:53:11 +0100 Subject: [PATCH] random number dosent put 10 anymore --- commands/fun/say.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/say.js b/commands/fun/say.js index 82507d2..c315600 100644 --- a/commands/fun/say.js +++ b/commands/fun/say.js @@ -42,7 +42,7 @@ module.exports = class sayCommand 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) - text = text.replace(/\[number\]/, Math.floor((Math.random() * 10) + 1)) + text = text.replace(/\[number\]/, Math.floor((Math.random() * 9) + 1)) } while( text.includes('[verb]') || text.includes('[adverb]') || text.includes('[noun]') || text.includes('[adjective]') || text.includes('[member]') || text.includes('[number]') ) // Send the final text