Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 984 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 984 Bytes

ILDA Word of the Day

This simple script selects a random word (and sentence, if applicable) from an ILDA Dictionary JSON file and sends it to a Discord channel via a webhook.

It was created for several purposes:

  • to remember how JavaScript works.
  • to learn about Node.js.
  • to illustrate the possibilities for ILDA data.

Setup and Usage

  1. Ensure Node.js is installed on your system.
  • This script requires axios for HTTP requests:
npm install axios  
  1. Ensure your ILDA Dictionary JSON file is in data/entries.json
  2. In your favorite plain text editor, open index.js and replace WEBHOOK_URL with your Discord webhook URL.
  3. Test the script & your setup: node index.js.
  4. Customize it & expand it; the limit is your imagination.
  • Change the greeting.
  • Replace the image, unless you love Rusty.
  • Send the message to Slack instead of Discord.
  • Place it in a crontab to schedule it.
  • ...or do whatever you want!