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.
Add +1 to an URLfetch api
3 replies
Stellar Raccoon said:
```
eval a=$(urlfetch https://rokbot.xyz/ytsubs.php?id=UCA1w_j38iARNUclsjv8pABg);a++;a)
```
$(eval a=$(urlfetch https://rokbot.xyz/ytsubs.php?id=UCA1w_j38iARNUclsjv8pABg);a++;a)