From 83cc44d4e34e27fbc2232af406a60cc17ac0e63d Mon Sep 17 00:00:00 2001 From: Thiago Cardoso <56006819+Seuhn@users.noreply.github.com> Date: Sat, 18 Nov 2023 23:03:27 -0300 Subject: [PATCH] Update messageCreate.js fixed bad math --- events/messageCreate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/messageCreate.js b/events/messageCreate.js index 862bb2e..0b53063 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -2,10 +2,10 @@ const getMessage = require('../resources/steamVRMessages'); module.exports = (client, message) => { if (message.author.bot) return; - if (Math.random() < 0.03) { + if (Math.random() <= 0.03) { message.reply('E ai mané, beleza?'); } - if (Math.random() < 0.001) { + if (Math.random() <= 0.001) { message.reply('Te fuder quietinho ai seu maluco.'); }