/Word-of-the-Day

A twitter bot that tweets words along with their definition(s) everyday in the form of a beautiful looking image card.

Primary LanguageJavaScript

Word of the Day Twitter Bot

A twitter bot that tweets words along with their definition(s) everyday in the form of a beautiful looking image card.

Header Image

How it works

  1. A word and it's definition are randomly generated through the https://www.wordsapi.com/ api.
  2. This generated information is then substituted into HTML template layouting a clean and minimalistic social media card.
  3. This HTML card is then rendered into a PNG image via the https://htmlcsstoimage.com/ api.
  4. That image is then tweeted via the Twitter API.
  5. A cron job is setup to complete this process once everyday at 12PM (EDT).

Note: Rate limits include 50 images renders a month and 1500 word generations a day on the free plan(s) for their respective API's.

This twitter bot is located on the twitter handle @word_of_day_. If you are interested in expanding your vocabulary every day by doing nothing more than just browsing twitter, consider giving it a follow.

Example Image Example Image Two