Skip to content

Send a random word from an ILDA Dictionary JSON file to a Discord server.

License

Notifications You must be signed in to change notification settings

HunterLockwood/ilda-discord-word

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Send a random word from an ILDA Dictionary JSON file to a Discord server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published