pusk/README.md

44 lines
801 B
Markdown
Raw Normal View History

2023-05-12 09:43:21 +02:00
# Pusk
2023-05-15 17:25:15 +02:00
Send a tweet to prevent Twitter from closing your account.
2023-05-16 01:41:19 +02:00
## How to use?
2023-05-12 09:43:21 +02:00
2023-05-16 01:41:19 +02:00
## With Docker
You can use this dockercompose template:
```yaml
version: "3.9"
2023-05-12 09:43:21 +02:00
2023-05-16 01:41:19 +02:00
services:
pusk:
build: .
container_name: Pusk
environment:
- TWITTER_USERNAME=yourusername # not your mail
- TWITTER_PASSWORD=yourpassword
- TWITTER_TOTP=yourseed # optional if you don't have 2fa
- PUSK_DEBUG=false # optional
restart: unless-stopped
2023-05-12 09:43:21 +02:00
```
2023-05-16 01:41:19 +02:00
## Local
2023-05-12 09:43:21 +02:00
2023-05-16 01:41:19 +02:00
- You will need these dependencies:
2023-05-16 01:41:19 +02:00
```sh
$ opam install cohttp-lwt-unix tls-lwt dotenv twostep lwt_ssl
```
2023-05-16 01:41:19 +02:00
- Populate your credentials in [config/.env](./config/.env)
- Then you can run the bot with:
```sh
$ dune exec pusk
```
## Name history
Derived from Elon's name :D. Thanks, Elon, for destroying Twitter.