diff --git a/plugins/meow/manifest.json b/plugins/meow/manifest.json index b1d4281..1e90762 100644 --- a/plugins/meow/manifest.json +++ b/plugins/meow/manifest.json @@ -1,6 +1,6 @@ { "name": "meow", - "description": "meow", + "description": "makes you a cat", "authors": [ { "name": "Rico040", 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 +}