pusk/README.md

44 lines
968 B
Markdown
Raw Normal View History

2023-05-16 02:12:01 +02:00
# Pusk [![status-badge](https://ci.mylloon.fr/api/badges/Anri/pusk/status.svg)](https://ci.mylloon.fr/Anri/pusk)
2023-05-12 09:43:21 +02:00
2023-05-16 02:19:56 +02:00
Send a tweet to prevent Twitter from closing your account, using a webdriver.
2023-05-15 17:25:15 +02:00
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:
2023-05-16 01:56:49 +02:00
image: git.mylloon.fr/Anri/pusk:latest
2023-05-16 01:41:19 +02:00
container_name: Pusk
environment:
- TWITTER_USERNAME=yourusername # not your mail
- TWITTER_PASSWORD=yourpassword
- TWITTER_TOTP=yourseed # optional if you don't have 2fa
2023-05-16 01:55:55 +02:00
- PUSK_DEBUG=FALSE # optional
2023-05-16 01:41:19 +02:00
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
2023-05-16 01:57:25 +02:00
$ opam install cohttp-lwt-unix tls-lwt dotenv twostep lwt_ssl yojson core
2023-05-16 01:41:19 +02:00
```
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.