Sends an SMS with a random joke from the top 5,000 posts in r/ProgrammerDadJokes.
My dentist started using Linux
Now he won't stop talking about how I need to use more FOSS
This repo contains a Node script in the joke-getter
folder that uses the Reddit API to request entries from r/ProgrammerDadJokes, sorted by all time top posts.
The script skips posts that are not "self-contained", which means the post text is not the entire contents of the joke (images, videos, etc). The script runs until it finds 5,000 jokes, which are written to a jokes.json
file.
You can find the resulting jokes.json
file in this repo at /joke-sender/files/jokes.json
.
The joke-sender
folder in this repo is a Application Template for the Losant IoT Platform. This template contains the workflow that pulls a random joke from jokes.json
and sends it via SMS.
If you want to use this template yourself:
- Zip the
jokes-sender
folder. - Use Losant's Application Import and upload the zip.
Disclaimer: I work for Losant.
What do you call importing a newly released Java package?
Robbing the Gradle.
I am declaring a war
var war;
Why did the node dev give up acting?
The callbacks were hell.
What do you get when you drop a Linux box in boiling oil?
Kentucky Fried Kernel