One out of two [3]

Sup, mates.

On February 4th, I asked one question:
[One out of two!]

So, is it possible to do it now with $(eval) or some other ways?

Yes, it could be done. Something like this could do what you need:

!commands add !give $(eval if (Math.random() > 0.5) {"!bonus $(urlfetch http://2g.be/twitch/randomviewer.php?channel=$(channel)) 250"} else {"!bonusall 100"})

That should work as is, but i didn’t test it. Nightbot will attempt to run one of the two revlobot commands you provided.

I love you, dude. Thank you so much.

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