Send tweet peridically to avoid ban from Elon
Find a file
2023-05-15 16:57:36 +02:00
bin add some optional logging 2023-05-15 16:28:24 +02:00
lib add some optional logging 2023-05-15 16:28:24 +02:00
test dune init 2023-05-12 08:30:56 +02:00
.gitignore add .env in config directory to load credentials, also always unload backend properly in case of a failwith 2023-05-13 18:00:57 +02:00
.ocamlformat add ocamlformat 2023-05-12 09:52:22 +02:00
dune-project add deps inside dune 2023-05-15 10:23:35 +02:00
pusk.opam add deps inside dune 2023-05-15 10:23:35 +02:00
README.md Add a command who install dependencies based on dune-project 2023-05-15 16:57:36 +02:00

Pusk

Requirements

$ opam switch list
#  switch   compiler                    description
→  default  ocaml-base-compiler.4.14.1  default

Install dependencies

dune describe external-lib-deps | awk '/external_deps/{flag=1;next}/))/{flag=0}flag' | tr -d '()' | tr -s '\n' ' ' | sed 's/required//g' | xargs opam install -y

Name history

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

TODO list

  • Download a driver
  • Run a driver in background during the life of the app
  • Figuring out how to use drivers
  • Login to Twitter.com
  • Check if latest tweet of user is more or less old than 30 days
  • Then tweet if needed something like "Don't delete my account please"
  • Close everything properly
  • Maybe create a docker image for easy deployment?