suppliesnawer.blogg.se

Quotes database api
Quotes database api







quotes database api

For example, on StreamElements bot, you need to use $(queryencode $(1:|' ')) instead of $. If you’re using another bot, you need to lookup documentation for that bot and contact them, as they behave differently. Nightbot handles special characters fine, you may not have installed the commands properly. If you still have access to the private token (used for !addquote/!delquote), you can recover using: !editquote 5 new quote replacing quote #5 Common issues I accidentally got rid of my !quote command This hasn’t been fully tested yet, and it’s not automatically added as part of the “Automatic install”, but you can manually add a “!editquote” command pointing to using the private key. Or, you can specify a substring of the quote, it will only delete it if there’s only one match Each quote when printed has an id, so you can use that: !addquote This is a new quote! Remove a quote To add a new quote, you simply pass it to the !addquote command: This returns a webpage with all the quotes in a list Add a quote This will return a random quote containing the word “cookie” You can use negative numbers (-1 would be the last quote)

quotes database api

This will return the 4th quote in the list This one is usable by anyone, and there are 3 different ways to use it.

quotes database api

Make sure you set the userlevel for addquote and delquote to moderator only.ĮDIT: You can now add &no_id=1 to the url to disable numbering on quotes.ĮDIT2: You can now delete ALL quotes by adding &clear=1 to !delquote command.ĮDIT3: You can now silence non-error responses (“Quote added successfully”) with &silent=1 Usage Get a quote Simply go here to generate the 3 commands: Be careful though, if you do it through chatĪnd someone sees your secret token, they will be able to modify your quotes. You can manually add the 3 commands yourself.

Quotes database api mod#

If you’re a mod of another channel, if you want to customize the commands, or use another bot, This method is for those who are very familiar with creating and editing complex commands. It will automatically add those 3 commands to your channel !quote, !addquote or !delquote, as they will be overwritten.Īll you have to do is visit this webpage, and sign in with Nightbot. Automatic Installationįor this method, you need to be the owner of the channel.Īlso, make sure you don’t already have any custom commands named If you want a database, please host your own custom API. I reserve the right to limit and boot off any abusive use of this API at anytime. There is no guarantees for uptime or data retention. Warning: This is meant to be a system for adding quotes in Twitch chat, and not an arbitrary database. It allows you to add quotes, and have users request random or specific quotes. This custom api adds Quote functionality for your channel through nightbot.









Quotes database api