I been trying to make subgoal for youtube

I am kinda new to all this nightbot stuff but i am trying to make a sub goal command for YouTube that tell how many needed to reach goal I tried to do this and xloss also gave me a command but i cant get it to work thanks this what i have now !commands add !goal $(channel) is $(eval 25 - $(youtube $(channel) “{{subscriberCount}}”) - 1) subs away from reaching the goal and this what returns Everyone please be sure to help 1300 reach their goal of Right-hand side of ‘instanceof’ is not an object subs away from reaching the goal!
please help

@Boogie_Tyme

Nightbot does not have a $(youtube) variable. Instead you should look into using $(urlfetch) to make requests to YouTube’s data API. @xloss may be able to help you with that.

2 Likes

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