A small bot that publishes images from a folder any time you run it
  • TypeScript 92.3%
  • Nix 7.7%
Find a file
2023-02-03 09:34:30 +01:00
posts Initial commit 2023-01-03 21:01:48 +01:00
.envrc Initial commit 2023-01-03 21:01:48 +01:00
.gitignore Initial commit 2023-01-03 21:01:48 +01:00
flake.lock Initial commit 2023-01-03 21:01:48 +01:00
flake.nix Initial commit 2023-01-03 21:01:48 +01:00
main.ts Allow specifying a custom folder 2023-02-03 09:34:30 +01:00
README.md Allow specifying a custom folder 2023-02-03 09:34:30 +01:00

Mastodon Image Bot

This is a small program that posts an image from a given folder every time you call it. You can call it like so:

MASTODON_INSTANCE_URL=... MASTODON_ACCESS_TOKEN=... deno run --allow-env --allow-net --allow-write --allow-read main.ts [folder]

If you leave out folder when calling the script, it will try to look for a posts directory inside the folder where the script is located.