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/bot.ts
Sam Therapy c4427fe5c9
Some checks failed
continuous-integration/drone/push Build is failing
feat: allow overwriting the message
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-11-23 18:37:46 +01:00

20 lines
426 B
JavaScript

#!/usr/bin/env node
import getLocalImage from "./getLocalImage.js"
import getRemoteImage from "./getRemoteImage.js"
import getConfig from "./helpers/getConfig.js"
import { config } from "./helpers/types.js"
/**
* Main function
*/
async function main() {
const conf: config = await getConfig()
if (conf.remote) await getRemoteImage(conf)
else await getLocalImage(conf)
}
// Run the main function, obviously.
main()