Allow specifying a custom folder
This commit is contained in:
parent
76304ea34f
commit
2a66af3091
2 changed files with 14 additions and 7 deletions
|
|
@ -1,7 +1,9 @@
|
|||
# Mastodon Image Bot
|
||||
|
||||
This is a small program that posts an image from `./posts` every time you call it. You can call it like so:
|
||||
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
|
||||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue