Ask coding questions

← Back to all posts
How to make a input thing but detects specific words and replace it
Taiga123m

Basically when the player types a word, in my case "you" im trying to change it to me;since for me when the player says something something "you" im tryna make it so the person the player is talking to will respond with something something me. For example, code:hey sup whatcha doing:? player: I am making you a idiot code:ahh I see so your making me a idiot.

Voters
Taiga123m
Comments
hotnewtop
aaaaaaaaaaaaaaaaaaaaaaaaaaaa

Umm please send the repl link please

Taiga123m

@aaaaaaaaaaaaaaaaaaaaaaaaaaaa
its not in repl lol but I can rewrite it or cap it

aaaaaaaaaaaaaaaaaaaaaaaaaaaa

@Taiga123m

well

document.querySelector('input').value = document.querySelector('input').value.replace('poop', 'pee') could be a start

Taiga123m
aaaaaaaaaaaaaaaaaaaaaaaaaaaa

@Taiga123m mark as correct? it's the checkmark