/fuckoff-twitter

Fuck off @twitter, let me have "latest tweets" as a default.

Primary LanguageRustGNU General Public License v3.0GPL-3.0

Fuck off, @twitter Build

This tiny script automated that for me:

I'm sorry dear followers, but every time @twitter makes me re-select "latest tweet" I'm gonna tweet that over and over again (and I do encourage you to do the same; I promise my support in the form of RTs): https://t.co/yIpedfHvIc

— Eduardo Cuducos, November 20, 2019

Usage

  1. Create an app and get your API keys from Twitter's Developer platform
  2. Create environment variables as described in .env.sample
    1. The TWEET variable is the text you want to tweet when this script runs
    2. Optionally, if you want this tweet to be a reply for a given tweet, add the status ID number of that given tweet into REPLY_TO (otherwise just ignore it)
  3. Download the executablel for Linux, macOS or Windows and run it!

For example, these last two settings look like that in my case:

TWEET=Fuck off @twitter, let me have "latest tweets" as a default.
REPLY_TO=1197153914916888579

Development & contributing

Requires Rust with cargo:

$ cargo run
https://twitter.com/cuducos/status/1194269206419775488

This will be the URL for your fresh new tweet!