Hey there, I'm trying to personalize my nightbot followage command a bit. I looked through the other "if else" topics on the forum but couldn't find an answer that applied to my issue. Also, I know next to nothing about javascript so that might have something to do with it too.
Basically, I want to create an if else statement so that after nightbot displays a user's follow time...
- If it's less than 5 months, it will say something like "Looks like you're new here, thanks for the support!"
- If it's greater than 18 months, it will say "A real ride or die!"
- And if it's in between, it will say "Now that's dedication!"
I've gone through a ton of code variations using info from this forum, w3 schools, and even chatGPT, but nothing has worked. Here's what I have so far:
$(urlfetch https://2g.be/twitch/following.php?user=$(touser)&channel=$(channel)&format=mwdhms) $(eval var ft=$(urlfetch https://2g.be/twitch/following.php?user=$(touser)&channel=$(channel)&format=mwdhms); if ft.includes("m") fm=parseInt(ft.split("m")[0]); if (fm<5) {'Looks like you're new here, thanks for the support!';} else if (fm>18) {'A real ride or die!';} else {'Now that's dedication!'})
I'm sure there's a million things wrong with this code, but this is the best I could come up with after hours of research. Not even sure if this is possible, but any help would be greatly appreciated! Thank you 🙏