Add +1 to an URLfetch api

So i have this url. https://rokbot.xyz/ytsubs.php?id=UCA1w_j38iARNUclsjv8pABg, which gives my yt sub count. I want to add 1 to it. For example if it said 21, I would want it to say 22. This is not my API, so I have no control over it. I want to put that number (ex. 22) in my NightBot command.

this should do the trick…

$(eval a=$(urlfetch https://rokbot.xyz/ytsubs.php?id=UCA1w_j38iARNUclsjv8pABg);a++;a)
1 Like
$(eval a=$(urlfetch https://rokbot.xyz/ytsubs.php?id=UCA1w_j38iARNUclsjv8pABg);a++;a)

y did u write the same thing i did? XD

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