[CustomAPI] Quote system

@blaboscz Thank you for reporting the bug! There was an issue with Unicode characters, it could be fixed now.

2 Likes

Thank you so much, just one more thing, the same problem is with !quote list --> http://twitch.center/customapi/quote/list?token=23a39153 There is the same respond with code 500

1 Like

Good catch once again. Fixed.

2 Likes

Great job :slight_smile: Thank you so much. This is the best API i had ever used :slight_smile:

1 Like

Hi, is there anyway to delete all quotes at once or do you have to go one by one?

1 Like

I actually did add something for that, forgot to document it here, I’ll add it in a bit.

In the meantime, refer to this post:

If you have any questions, as how to set it up, feel free to ask.

1 Like

Any idea how to add a quote with a specific number? For example, if I deleted quote 1, and there are quotes 2 and 3, how do I add a new quote in the space of quote 1 without it becoming quote 4?

1 Like

If you delete quote 1 quote 2 becomes quote 1. All the way up the line, the rest of the quotes fill in the gap.

Is there any way to make nightbot say random quotes using timers?

1 Like

Yes, actually. In your timer if you set the alias to be your !quote command or if you set the message field to be customapi/urlfetch for the quote grabber missing the $(querystring) variable it will always pull a random quote for your timer to send out.

1 Like

So, i should put something like:
$(urlfetch http://twitch.center/customapi/quote?token=TOKEN)

Is that right?

1 Like

Put:
$(urlfetch http://twitch.center/customapi/quote?token=TOKEN&data=)
Just to be safe

2 Likes

Worked great! Thanks guys! :smiley:

1 Like

looks like there is some kind of problem if there are too many quotes…
i’ve added more than 1000 quotes and nightbot seems to have problems retrieving some with higher numbers :confused:
Is it expected behavior? Is there optimal quote limit?

1 Like

Can you give your channel and specific command that fails?

1 Like

The channel is https://www.youtube.com/user/DOneDarkness
The specific command is the !quote
Sometimes it works, sometimes not… It seems to never work with something like !quote 900

1 Like

Worked fine when I tried the commands on Twitch. I tried 800, 900, 1000, and many more and it all returned perfectly. Youtube doesn’t let me type in your chat while you’re offline so I can’t test there, but it seems like it’s an issue with Youtube, maybe specific the links you have in your quotes?

1 Like

There are more than 500 diferent links on my quotes (all adult…), could be them, but seems random…
Sometimes works, sometimes don’t :confused: And low numbers, like 100, 200 seems to always work.

I think there is way to test on youtube, using the gaming.youtube system: https://www.youtube.com/live_chat?is_popout=1&v=wAzL2VuybxA

Edit: After some more testing, looks like i’ts youtube’s fault :frowning:
Short links are working, bigger ones that have “<wbr>&shy;” are not, and they were before…

1 Like

You’re right, it is a YouTube problem. I’ll reach out to their developers.

Sorry for the delayed response. YouTube developer reached out to me and stated that this bug will be fixed by them in their next release.

1 Like