Node v16.
Cron job to post a randomly selected meme (any picture really) to a messaging app.
Images are moved to already-sent
to avoid duplicate posting.
halverneus/static-file-server
is used to publicly share the memes
folder for Slack to download.
Supported: Slack, Discord.
# Configure Slack webhook etc
cp .env.sample .env
# Schedule meme-posting!
docker-compose up --build -d
If you get a 403 Forbidden for server:4001/cat.jpg
:
chmod -R 755 memes_folder
- Ofelia: A docker job scheduler (aka. crontab for docker)
- Cron Docker Blog post