Skip to content

Commit f69c1a2

Browse files
committed
Updated README
1 parent ce1d481 commit f69c1a2

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,22 @@ ARCHIVEBOT_BASIC=true || false
4949
## Rate limits
5050

5151
Due to Slack's strict rate limit and given that several requests need to be made per channel. The script will run each request at a rate of 1 request per 2 seconds. This will help avoid the rate limit that Slack imposes of roughly 1 req/s. Don’t run the cli more than once every hour to avoid rate limits.
52+
53+
## Docker
54+
55+
There is now a Dockerfile that can be used to build a container to run the cli.
56+
57+
Using environment variables
58+
```bash
59+
docker run --rm -d \
60+
-e ARCHIVEBOT_NEVER_ARCHIVE=$ARCHIVEBOT_NEVER_ARCHIVE \
61+
-e ARCHIVEBOT_SLACK_TOKEN=$ARCHIVEBOT_SLACK_TOKEN \
62+
-e ARCHIVEBOT_INACTIVITY_DAYS=$ARCHIVEBOT_INACTIVITY_DAYS \
63+
slack-archivebot
64+
```
65+
66+
Using flags
67+
```bash
68+
docker run --rm -d \
69+
slack-archivebot -n "test" -t abc123 -d 60
70+
```

0 commit comments

Comments
 (0)