$(touser), on a scale of 1 to 10, you’re like a $(eval "$(user)"=="princessmarvel "?"10":Math.floor(Math.random()*10+1))
Need help with this command. Im trying to do a random number generator. But i want to have a specif…
4 replies
From what I can tell that should work unless the person name your checking has capitals in it. You can fix that by putting.toLowerCase() after "$(user)" like this:
$(eval "$(user)".toLowerCase()=="princessmarvel"?"10":Math.floor(Math.random()*10+1))
Also you had a space after the name before but I just deleted it. This should work as you want it to.