Nightbot custom API, how it works

Im searching in the internet for hours now and still don’t know how I can get the nightdev uptime text with a .js file. Could you guys there help me out? I try to code my own little bot but I’m stuck at your special “customapi” json read thingy.

Nightbot cannot parse JavaScript code that may be embedded on a customapi. Instead, you must print to the output of the page what you would like to emit. Most commonly people use PHP to accomplish this, but there are other server-side scripting languages you can use.

For example, to print “Hello World” out to a page in PHP you can type the following:

<?php
    
    echo "Hello World";

?>

This topic was automatically closed after 14 days. New replies are no longer allowed.