I found a bugā¦ when referencing quote number 0 or -1 and the quote numbering is on it returns the latest quote with the ID of 0 instead of it actual ID number.
Also would it be possible to be able to pass a variable to disable !quote list? Prefer to have that in a separate command.
Hello, Iām a moderator in a channel where Iāve set up a pretty basic quote system, works fine, I was just wondering if there is a way to change the !quote command to output ā#1 Quoteā¦ā instead of ā1. Quoteā¦ā Iāve read a few things in this thread, tried to put the # before the command but it outputs "#1. Quoteā¦ " instead of the actual "#1 Quoteā¦ " that Iām looking for, is this possible to do? Messed a bit with the code but Iām not a pro at JS and couldnāt make it work.
The list URL is https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN where PUBLIC_TOKEN is your list public token which can be found in the !quote command and is 8 characters long. Just put this URL at the end of your !quote command response.
I could use some help. I had added the api to nightbot and it was showing the quotes for both myself as the Broadcaster, but then nightbot would repeat the quote.
after clearing the quotes it still will chat a quote from me as the broadcaster but nightbot says āthere are no quotes addedā
Hi Iāve been using this at the suggestion of someone under a thread I posted under this forum. Just wanted to say thank you and itās working brilliantly. I had a question and was wondering if itās possible?
Is it possible to stop users from using the command more than once? Mine is set for !request so viewers can make requests but it is being abused slightly with some viewers submitting 10+ requests and was curious if there is a function to limit the use to once per person?
Yes you can! I assume youāre using Random Requests Command so Iāll go from there and update it to check if they already reached the maximum number of requests before adding or declining theirs.
And now !request will have an alias:
ā¢ _request:
$(eval a=`$(urlfetch https://twitch.center/customapi/addquote?token=$(query))`; q=`$(query)`; q==`max`?`You reached the maximum amount of requests, please be patient.`:a;)
Notes:
ā¢ Right now the limit is at 10 requests, you can set it higher or lower by adjusting the number in the t>10 test in the first command.
ā¢ You can also change the message they get when they reached the maximum amount of requests in the second command.
how can i use this with streamelements? i want to have a separate quote system from the default one which would have a different name, and this API seems perfect for that but i canāt figure out how to add this to streamelements. i tried to just replace each instance of ${querystring} with $(queryencode $(1:|' ')) but that doesnāt work, it says āParsing error at position 11: Mismatched input list, missing end of inputsā and i am not even close to being able to understand what that means
Wow, Streamelements documentation is hard to navigate throughā¦
Usually we donāt give support for other bots, so next time please take the time to read the documentation Streamelements provide.
I think you can replace $(querystring) with ${pathescape ${1:}} or ${queryescape ${1:}}
If none of the two work, itās not possible.
Been searching through the thread, but canāt seem to find anything. Is there a way to add a date to the quote, but just as month/day/year, without the specific time of day?
To my knowledge the edit quote function can only edit one qoute at a time Iām not saying for certain that he hasnāt added one but to my knowledge this is not a function of the API
Yeah i mean i donāt know either. I found a way to download the list file as is, but theres no way to reupload it, i thought with the ability to see the complete list wed have the ability to edit it as a whole. But who knows. Corssing my finger for a reply.