Hi everyone,
I was stumbling around the Internet and I discovered that
ICanHasCheeseburger now has the largest "dad joke" collection on the
Internet.  I was looking at adding a command to Nightbot (a bot used on
Twitch) and discovered that the API allows the joke to be returned as plain text, not JSON.  So I now have a dad joke "door" I wrote in bash using curl.
Note that you can mod this to work on any OS that supports curl!  Just write the script in your favorite scripting language.
The website asks that you send a user header so I use my BBS' website.
===
#!/bin/sh
#
# The following line is wrapped for this message...
curl -s -H "User-Agent: Outpost BBS (
https://outpostbbs.net)" 
-H "Accept: text/plain"  
https://icanhazdadjoke.com
echo -e "\n"
===
That will return a single-line joke with a CR to display.
Thee cURL options:
-s : suppress curl's output
-H : send header to the website
echo -e : displays escaped chars (also good for showing ANSI colors)
Note that there were some codepage issues noted with the received text: it was obvious they used Windows encodings to input the data.
I am working on a script for MBSE that will run after a caller has
disconnected to create a new display file with a fresh (okay, dad jokes
might not be "fresh" LOL) joke for the next caller...
-- Sean
 
--- MultiMail/Linux
 * Origin: Outpost BBS * Johnson City, TN (618:618/1)