I’m trying to make a custom IQ command that picks random numbers for the user. The thing is, I want floor/ceiling to be different for me than everyone else. I found a custom API that generates the number, it works except is doesn’t run the specific api for me vs other users. My code is here:
!editcom !iq $(eval var a = “$(user)”; if (a.toLowerCase() === “MYUSERNAME”) { “$(user) has an IQ of $(customapi http://2g.be/twitch/randomnumber.php?=defstart=150&defend=300&start=$(1)&end=$(2))
PogChamp
”; } else { “$(user) has an IQ of $(customapi http://2g.be/twitch/randomnumber.php?=defstart=1&defend=69&start=$(1)&end=$(2))
LUL
”; } )
I know the if/else recognizes my name because it shows the different emoji, but the custom API isn’t showing right as I’m getting numbers outside the range I’m supposed to be in for my username.
Is there a better way to write this?