From faf010b452a460ea91003e47c0b38dab4b416bd9 Mon Sep 17 00:00:00 2001 From: Rico040 <93081680+Rico040@users.noreply.github.com> Date: Mon, 20 May 2024 13:10:45 +1000 Subject: [PATCH] change chances a lil bit --- plugins/meow/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/meow/src/index.ts b/plugins/meow/src/index.ts index a4b5162..78c4375 100644 --- a/plugins/meow/src/index.ts +++ b/plugins/meow/src/index.ts @@ -16,7 +16,7 @@ function getRandomInt(min, max) { function modify(msg: Message) { var newContent = msg.content - if (getRandomInt(1,2) === 1 || msg.content.match(hasEmotesRegex)) { + if (getRandomInt(1,4) === 1 || msg.content.match(hasEmotesRegex)) { newContent = msg.content.replaceAll(//gi, '🐱'); } if (getRandomInt(1,8) === 1) { @@ -29,7 +29,7 @@ function modify(msg: Message) { let words = newContent.split(" ") let randomIndex = Math.floor(Math.random() * words.length); words.splice(randomIndex, 0, catSounds[Math.floor(Math.random() * catSounds.length)]) - if (getRandomInt(1,2) === 1) words[randomIndex] += '~' + if (getRandomInt(1,3) === 1) words[randomIndex] += '~' newContent = words.join(" ") if (getRandomInt(1,2) === 1) newContent += '~' } @@ -45,4 +45,4 @@ const unpatchMeowing2 = before("uploadLocalFiles", uploadModule, (args) => modif export function onUnload() { unpatchMeowing() unpatchMeowing2 -} \ No newline at end of file +}