I’ve tried making the subcount command with the Youtube API, shown below:
Subcount: $(eval const api = "$(urlfetch json http://bit.ly/*****)"; ${api.items[0].statistics.subscriberCount})
(of course, the “*****” is an actual link, but showing it would output my API Key, so nah).
And I’m getting an error Subcount: Right-hand side of 'instanceof' is not an object
.
Does anybody know what I’m doing wrong?
Remove the quotation marks around $(urlfetch). Also remove the ${
and }
around api.items[0].statistics.subscriberCount
Subcount: $(eval const api = $(urlfetch json http://bit.ly/*****);api.items[0].statistics.subscriberCount)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.