Guest User

replaces words sent in chat with "nyoom"

a guest
Dec 17th, 2025
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function boner(originalString, newWord) { const wordsArray = originalString.split(' '); const randomIndex = Math.floor(Math.random() * wordsArray.length); wordsArray[randomIndex] = newWord; return wordsArray.join(' '); }; w.on("chatmod",e=>{e.message=boner(e.message,"nyoom")})
Add Comment
Please, Sign In to add comment