This is the Twitter bot for isthatwordspelledcorrectly.com. It is a Docker container that tweets one correctly spelled word every 7 hours. Check it out at @ITWSCBot.
First, create a file /env.config
with your Twitter API keys, following /env.config.example.
Build the image:
./build.sh
Tag the image as itwscbot_latest
and push it to your docker repo:
./tag.sh YOUR_DOCKER/REPO
Create a file /docker-production.yml
with the following contents:
services:
itwscbot:
image: YOUR_DOCKER_HUB/REPO:itwscbot_latest
Deploy it to your docker context:
./deploy.sh YOUR_DOCKER_CONTEXT
The words list /safe_words was obtained the following way:
Take this english words list and this list of obscene words and run
rg -v -f obscene_words english_words > safe_words
to remove all instances of obscene words from the english words, and pipe that to a new file.
Note that I am removing all occurrences of the obscene words, even when occurring as a substring. I am falling prey to the Scunthorpe Problem. But I think the resulting list is more interesting with so many common words removed.