Rating command but random each time (nightbot/twitch)

Asked Dec 27, 2022·3 replies·Last activity 3 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.

Hello everyone, I am looking to make a command that will allow the user in twitch to do a !rate command and obtain a different rating each time. the current code I have found ( listed below ) allows the rating to occur but stays the same for that specific viewer. I believe I should use random but am unsure as how I would incorporate that, or maybe it only works for percentages ? I appreciate any help, Thank you!!!

here is the code
$(eval $(userid)%11)/10

3 replies

$(eval $(user)==USER?[0:Math.ceil]
(Math.random()*10))/10 figured it out from another code posted by someone else, just add words

If anyone knows a better way then I posted above please let me know