Can someone help me to create a custom command

I need help creating a command that tracks how many follows you have gotten that stream… can someone please help :slight_smile: i need a version i can !addcom into chat

Hey @woot_69!

One way you could do this is by using the quote system API. You’ll get your TOKENS by clicking on the second link in the post, use these in the commands I wrote. To know where to look for your PUBLIC_TOKEN and PRIVATE_TOKEN, look at the field bellow:


Keep your PRIVATE_TOKEN secret, don’t share it anywhere. To add a command containing your PRIVATE_TOKEN do it from the dashboard. Don’t use the chat as anyone could monitor it and copy the token, they could then edit your data.

Then you’d have to run this command at the beginning of the stream, it’ll store the number of followers at the start of the stream to a quote:

$(eval r=`$(urlfetch$(twitch $(channel) "{{followers}}"))`; `Number of new followers reset.`)

Make sure !resetfollowers is for moderators and above only.

And then run this command at the end of the stream, it’ll compare the number of followers at the start and at the end of the stream and compute how many you’ve gained:

$(eval start=`$(urlfetch`; end=`$(twitch $(channel) "{{followers}}")`; `$(channel) has gained ${end-start} followers.`

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