This app allows you to filter the real-time stream of all public tweets and send the matching ones to Discord. Just create your own Stream Rule and start the app.
Easiest way to run this app is with Docker:
$ docker run --env-file <your-env-file> dvdblk/tweet-saver:latest
To successfully run the app you need to pass these environment variables to the docker container:
ENV_VAR | Description |
---|---|
DISCORD_WEBHOOK_URL | Tweets will be sent to this Discord channel. |
TWITTER_BEARER_TOKEN | Twitter API OAuth 2.0 Bearer Token / Access Token |
TWITTER_FILTERED_STREAM_RULE | The Stream Rule for filtering tweets. (e.g. from:elonmusk ) |
You can pass these to docker run
in an .env
file with --env-file <your-env-file>
or manually with -e DISCORD_WEBHOOK_URL=...
.
The app sends custom Discord Embeds for four types of tweets (regular, retweet, quote and reply). Also supports images.