Can i get some help what the

Asked Aug 28, 2020·4 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

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))

4 replies

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.

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

Thank you ill give it a shot 😭

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

Hey @Timber Koala!

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.