hello.php


This script greets the command user with a randomly picked greeting. A tad useless since this can be achieved via the Nightbot $(user) variable, but this was a good way to practice using Nightbot request headers. Since the command user is obtained from Nightbot’s request headers, I’ve set the script to only allow Nightbot to interact with it. It won’t work if you try running it in your browser.

The Nightbot command is:

$(urlfetch https://rokbot.xyz/hello.php)


Leave a Reply

Your email address will not be published. Required fields are marked *