Compare commits

...
Sign in to create a new pull request.

1 commit
master ... dev

Author SHA1 Message Date
Tyler-A
2ec50129e9 Add check for initial quote when starting the app on repeat. 2020-07-18 15:58:42 -06:00

View file

@ -1,7 +1,7 @@
// //
// main.ts // 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); process.exit(1);
}; };
if (args.includes("--initial")) {
await WEBHOOK_PUSH(await GET_RANDOM_QUOTE());
};
setInterval( setInterval(
async () => { async () => {
console.log(`* Emitting a quote`) console.log(`* Emitting a quote`)