Skip to content

dvdblk/tweet-saver

Repository files navigation

Tweet Saver

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.

Run the app

Easiest way to run this app is with Docker:

$ docker run --env-file <your-env-file> dvdblk/tweet-saver:latest

ENV variables

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=....

Custom Discord Embeds

The app sends custom Discord Embeds for four types of tweets (regular, retweet, quote and reply). Also supports images.

About

Filters all public tweets according to a given filter and sends matching ones to Discord.

Topics

Resources

License

Stars

Watchers

Forks

Packages