From 2ec50129e9777b8bec1a3576272d288bb309af72 Mon Sep 17 00:00:00 2001 From: Tyler-A Date: Sat, 18 Jul 2020 15:58:42 -0600 Subject: [PATCH] Add check for initial quote when starting the app on repeat. --- src/main.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 53028fd..f208765 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,7 @@ // // main.ts // -// Written by: Tyler Akins (2019/12/31) +// Written by: Tyler Akins (2019/12/31 - 2020/01/01) // @@ -30,6 +30,12 @@ const MAIN = async () => { process.exit(1); }; + + if (args.includes("--initial")) { + await WEBHOOK_PUSH(await GET_RANDOM_QUOTE()); + }; + + setInterval( async () => { console.log(`* Emitting a quote`)