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 dd0b2e5d69
Some checks reported errors
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build was killed
Do many things
- Convert to yarn v2 with zero installs
- Refactor much of app to use config instead of flags
- Add booru support

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-03-14 08:48:49 +01:00

30 lines
1.2 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"
"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` */
}