Setting up an IQ commands

Hey @Lucille!

Your Pastebin is dead so I won’t be able to help you with it, so it’s gonna be a general example.
But the way to do this is to use a single $(eval):

$(eval r=Math.floor(Math.random()*260)-10; o='$(urlfetch json https://pastebin.com/raw/XXXXXXXX)'.split('#'); i=0; if(r>50){i=1} if(r>100){i=2} if(r>150){i=3} if(r>200){i=4} `$(user), you have ${r} IQ. ${o[i]}`)

And your Pastebin must look like that:

MESSAGE_IF_IQ_UP_TO_50#
MESSAGE_IF_IQ_UP_TO_100#
MESSAGE_IF_IQ_UP_TO_150#
MESSAGE_IF_IQ_UP_TO_200#
MESSAGE_IF_IQ_UP_TO_250

If you used the search bar with iq command as the query you would have found the following topic that would have answered your question:

1 Like