/wotd

Post the Wiktionary WOTD to Slack

Wiktionary WOTD to Slack

A little script that posts the Wiktionary Word of the Day to a Slack room.

WOTD Slack message

It uses Wiktionary’s RSS feed to extract the most recent entry, wraps the WOTD and its definition in a nicely formatted Slack message and posts it to the Slack room.

Implementations

There are two different feature identical implementations: one in Go and another in Ruby. No reason really, only the fun of trying to implement the same program in two different languages. Turns out both implementations have the same single non-standard library extension: an HTML sanitizer. All other functionality was easily covered by the standard features of the language.