Can i get some help what the

Um nightbot kept ranking my girl a low number so i wanted to know if she could have a persistent rating of 10. While others numbers would be sporadic.

So similar to this
$(touser), on a scale of 1 to 10, you’re like a $(eval Math.floor((Math.random() * 10) + 1))

Try this:

$(eval "$(user)"=="USERNAME"?"10":Math.floor(Math.random()*10+1))

USERNAME is the name of the person you want to be rated a 10.

1 Like

Thank you ill give it a shot :sob:

It actually didn’t work. Kept giving random numbers still :sob:

Hey @JayeBlak!

The reason why it didn’t work is likely because the casing of the username don’t match, so try the following, you don’t have to care about uppercase and lowercase, just replace USERNAME with hers without the @:

$(eval `$(user)`.toLowerCase()==`USERNAME`.toLowerCase()?`11`:Math.floor(Math.random()*10)+1;) 

Also, courtesy of me, she now gets a 11, don’t thank me.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.