Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send a message in a channel for every Tweet #59

Open
smyalygames opened this issue Aug 10, 2022 · 1 comment
Open

Send a message in a channel for every Tweet #59

smyalygames opened this issue Aug 10, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@smyalygames
Copy link
Member

Is your feature request related to a problem? Please describe.
This would send a message in #twitter on Discord every time a tweet is sent. This currently is for every retweet from 5m5v on Twitter

Describe the solution you'd like
Send a message of the Tweet every time 5m5v retweets on Twitter

Describe alternatives you've considered
Using webhooks, but it seems a bit broken and does not seem to work with embeds on Twitter

Additional context
This lets activists do other forms of activism on Twitter, as 5m5v uses AI to try to figure out who may be considering to go vegan. More information can be looked at here from 5m5v: https://5minutes5vegans.org/

@smyalygames smyalygames added the enhancement New feature or request label Aug 10, 2022
@Leftyxiv
Copy link

Leftyxiv commented Sep 2, 2022

After some initial investigation, the problem seems to come from any tweet without a file attached. Any tweets with a photo/video appear to embed ok.

The easiest fix appears to be to modify the URL from twitter.com to fxtwitter.com, but doing that adds some additional text to the embed.

image

We can programmatically embed via this
https://discordjs.guide/popular-topics/embeds.html#embed-preview

will look into sending an API request to twitter and parsing through the information to create our own embed

The bot currently posting appears to be a different bot, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants