nightbot custom api Nightbot custom api 101: In writing a custom api for Nightbot, you have to know about the limitations. The big limitation is that nightbot custom api can only handle raw text output on a website. This means that everything needs to be processed server side and outputted as raw text. In this example, we have a PHP script read lines from "quotes.txt" and output a single line to the URL we feed nightbot custom api ("http:://HOST.com/nightbot/CHANNEL/quotes.php"). To add this api to your nightbot, add the command; !addcom !quote !(customapi ) All the command does is output the raw text contents of the website to nightbot. NB: Nightbot will not handle HTML, so if the text-output contains HTML code, nightbot will only output Disclaimer: This code is used as a Nightbot custom API to output a random quote from the text-file "quotes.txt". The text-file MUST be formatted so that quotes are separated by lines nightbot custom api How to get it? nightbot custom api Ex. textfile(quotes.txt): "Do NOT let the Viking near the redstone" - Everyone, 2015 "Keep you meat away from me!" - Jynx, 2015 "This code can handle an empty line in the text file as well!" - Wacky, when writing the pastebin! nightbot custom api