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/src/index.ts
Sam Therapy 153ba14fab
All checks were successful
continuous-integration/drone/push Build is passing
Booru support (#1)
- Convert to yarn v2 with zero installs
- Refactor much of app to use config instead of flags

Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: Sam/fediverse-imagebot#1
2022-03-15 19:13:35 +00:00

19 lines
404 B
TypeScript

import getConfig from "./helpers/config.js";
import { config } from "./helpers/types.js";
import getLocalImage from "./local.js";
import getRemoteImage from "./remote.js";
/**
* Main function
*/
async function main() {
const conf: config = await getConfig();
if (conf.remote) await getRemoteImage(conf);
else await getLocalImage(conf);
return;
}
// Run the main function, obviously.
main();