I need help with multiple counter command via the costum api.

Asked Sep 10, 2021·2 replies·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

So basically I followed a guide to let my youtube chat change commands as seen here.

!baal $(eval a='$(urlfetch http://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=e)';' ') Baal has been pulled!

!addbaal Baal has been pulled $(eval '$(urlfetch http://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN)'.split('.').length-1) times so far!

But I have several other commands like this and they pull their number from the same urlfetch function.
So I need some help setting them apart: Thanks for your help in advance.

2 replies

Have you considered using the $(count) variable which should work the same as that and not have the need to call an API

Does it work even if a non mod enters the command? I have tried and failed to execute this on another account.