pusk/README.md
Mylloon 0c2afa881d
All checks were successful
Publish latest version / build (push) Successful in 4m40s
use forgejo actions (#5)
2024-08-11 16:34:15 +02:00

1.1 KiB

Pusk status-badge

Send a tweet to prevent Twitter from closing your account, using a webdriver.

How to use?

With Docker

You can use this dockercompose template:

services:
  pusk:
    image: git.mylloon.fr/anri/pusk:latest
    container_name: Pusk
    environment:
      - TWITTER_USERNAME=yourusername # not your mail
      - TWITTER_PASSWORD=yourpassword # in dockercompose, you need to double $ signs in your password
      - TWITTER_TOTP=yourseed # optional if you don't have 2fa
      - PUSK_DEBUG=FALSE # optional
      - PUSK_HASHTAG=TRUE # optional, will add an hashtag to tweets
    restart: unless-stopped

Local

  • Firefox installed

  • You will need these dependencies:

    $ opam install cohttp-lwt-unix dotenv twostep lwt_ssl yojson core
    
  • Populate your credentials in config/.env

  • Then you can run the bot with:

    $ dune exec pusk
    

Name history

Derived from Elon's name :D. Thanks, Elon, for destroying Twitter.