Ask coding questions

← Back to all posts
Is it possible to have a repl fork as soon as someone else opens it
ApoorvAgrawal

So I have a repl, and it has to have a password. But there is an option to change the password. So lets say that a guy named Bill comes and changes the password and then Harry can't use it because the password has changed! So it needs to automatically fork. I could say that people should fork in the description of my post when I share it, but there's always going to be that one person that doesn't listen and ruins the experience for everyone else.

Answered by Codemonkey51 [earned 5 cycles]
View Answer
Voters
ipuppy
ApoorvAgrawal
Comments
hotnewtop
Codemonkey51

That's kind of how it works. It currently works right now that the moment they edit the code it forks it, they cannot change the code for anyone unless you invite them to multiplayer, so your game is safe

ApoorvAgrawal

@Codemonkey51 that's not what I mean, I mean that there is an option to change their password and then it overwrites the current password with a new password in a file

Codemonkey51

Whenever someone runs your game it sandboxes that so it will just return to default value. @ApoorvAgrawal

ApoorvAgrawal