Docker container to automatically update Slack status.
Inspired by benpbolton/slack-autostatus/.
Container will do the following
- Run in a loop
- At random intervals send message + emoji payload to update Slack workspace status
Create Slack Personal Token for workspace to auto-update
docker build -t steve-dave .
Run container passing the SLACK_PERSONAL_TOKEN generated in the Requirements step. Run in background to continually update status at random intervals.
docker run -it -e "SLACK_PERSONAL_TOKEN=xoxp-XXXXXXXXXXXXXXXXXXXXXX" steve-dave -d
or with docker-compose, create a .env
file with SLACK_PERSONAL_TOKEN=xoxp-XXXXXXXXXXXXXXXXXXXXXX and run,
docker-compose up -d