This repository has been archived on 2023-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
fediverse-imagebot/config.sample.jsonc
Sam Therapy 4d554e7095
All checks were successful
continuous-integration/drone/push Build is passing
add retries
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-28 18:30:00 +02:00

33 lines
1.3 KiB
Text

{
//Instance and token settings
"instance": "INSTANCE_URL", // example https://test.com
"type": "INSTANCE_TYPE", // examples: "mastodon", "misskey", "pleroma"
"accessToken": "ACCESS_TOKEN", // Get a token from https://git.froth.zone/Sam/js-feditoken
"refreshToken": "REFRESH_TOKEN", // optional
// Post settings
"message": "", // example: "Hello, world!"
"visibility": "unlisted", // example: "public", "unlisted", "private", "direct"
// Misc settings
"retries": 5, // Number of times to retry an upload/post if it fails. Default is 5 if this does not exist.
"remote": false, // **Set this to `true` if you want to serve a file from a booru!**
/* THESE SETTINGS WILL BE IGNORED IF YOU SET `remote` TO `false` */
"booru": "safebooru.org", // example: "safebooru.org"
"tags": [""], // example: ["tohsaka_rin", "-feet"]
"rating": "safe", // example: "safe", "questionable", "explicit"
/* END OF SETTINGS THAT WILL BE IGNORED IF YOU SET `remote` TO `false` */
/* THESE SETTINGS WILL BE IGNORED IF YOU SET `remote` TO `true` */
"directory": "./images" // example: "./images"
/*
Directory structure should be as follows:
folder/
- sfw/
- image1.jpg
- nsfw/
- image1.jpg
*/
/* END OF SETTINGS THAT WILL BE IGNORED IF YOU SET `remote` TO `true` */
}