Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bombsimon/tweets-to-discord
🐦 Stream a Twitter user's feed and post content to Discord
https://github.com/bombsimon/tweets-to-discord
discord twitter
Last synced: 24 days ago
JSON representation
🐦 Stream a Twitter user's feed and post content to Discord
- Host: GitHub
- URL: https://github.com/bombsimon/tweets-to-discord
- Owner: bombsimon
- License: mit
- Created: 2021-01-20T22:05:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-03T23:08:19.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T21:14:28.772Z (over 1 year ago)
- Topics: discord, twitter
- Language: Rust
- Homepage:
- Size: 201 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tweets to Discord
This is a bot I made to stream a Twitter feed and post updates to Discord. It
was initially named `runar-tweets-to-discord` since the idea behind this was to
ensure all posts posted by [Runar Devik
Søgaard](https://twitter.com/RunarSogaard) would end up in our discord server in
real time. However, after finishing the implementation I realised this could be
used for anyone.Currently, this only supports a single user feed to follow. It will post all
mesages (mentions and replies).## Usage
Edit the configuration file and run it.
```sh
% cargo run [my_config.yaml]
...
[2021-01-24T19:21:44Z INFO tweets_to_discord] starting stream, watching Simpa Lainään
[2021-01-24T19:22:57Z TRACE tweets_to_discord] tweet received in stream
[2021-01-24T19:22:57Z INFO tweets_to_discord] @bombsimon: This is just a regular plaintext tweet! (https://twitter.com/bombsimon/status/1353423037480263682)
[2021-01-24T19:22:57Z TRACE tweets_to_discord] sent message to 111111111111111111 successfully
[2021-01-24T19:23:13Z TRACE tweets_to_discord] tweet received in stream
[2021-01-24T19:23:13Z INFO tweets_to_discord] @bombsimon: This is a quoted tweet! (https://twitter.com/bombsimon/status/1353423106677878790)
[2021-01-24T19:23:14Z TRACE tweets_to_discord] sent message to 111111111111111111 successfully
[2021-01-24T19:23:19Z TRACE tweets_to_discord] tweet received in stream
[2021-01-24T19:23:19Z INFO tweets_to_discord] @bombsimon: RT @rustlang: Read this thread for information about this account! (https://twitter.com/bombsimon/status/1353423131147464705)
[2021-01-24T19:23:19Z TRACE tweets_to_discord] sent message to 111111111111111111 successfully
[2021-01-24T19:23:50Z TRACE tweets_to_discord] tweet received in stream
[2021-01-24T19:23:50Z INFO tweets_to_discord] @bombsimon: @surjohan This is a reply! (https://twitter.com/bombsimon/status/1353423261439201280)
[2021-01-24T19:23:51Z TRACE tweets_to_discord] sent message to 111111111111111111 successfully
```### Output
This is what the result will look like.
**Plaintext**
![plaintext](images/plaintext.png)
**Retweet**
![rt](images/rt.png)
**Quote**
![quote](images/quote.png)
**Reply**
![reply](images/reply.png)