Hello!
I'm rather confused about the CustomAPI quote system. I've followed this thread here in regards to getting things set up.
Here is what I have done so far, which essentially copies the thread's code:
$(eval C=$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLICTOKEN_id=1).split(,);A=$(urlfetch https://twitch.center/customapi/addquote?token=PRIVATETOKEN=j$(user),);x=0;for(i=0;i<C.length-1;i++){if(C[i]==$(user)){x--}};$(user) has been deemed to have fake Jordans! Their dignity is now ${x-1}.)
Id like to do something like: (user) calls x command that resets the !fakejays command count back to 0. So if, say, user BananaHead had their dignity at -19, it would now be 0.
I have no knowledge of coding, but from my limited knowledge in the past, I believe it would use a similar concept as to this thread here. Storing the count variable for a user in a separate command, The !fakejays command could decrement the count and send a message showing the count, and another command (I suppose, something like !restored) would reset that count back to 0 along with a message.
This may be more complex, so its perfectly fine if it can't be done so simply, but I'd also like to see if there's a way to switch counts between users.
If you've made it this far, thank you so much for taking the time to read.