A simple bash script to send arbitrary text (supporting variables) to a Discord Webhook.
This is intended to be run on a unix-like system via cron or the like. It depends only on curl.
- Open up your Discord channel and navigate Edit Channel > Integrations > Webhooks > New Webhook.
- Create your webhook and copy the generated URL to clipboard
- Replace the variable value of WEBHOOK in
send-a-joke.sh
with your new webhook URL. - Run your script as a cron, or manually from the commandline.