Add check for initial quote when starting the app on repeat.
This commit is contained in:
parent
9e7417121b
commit
2ec50129e9
1 changed files with 7 additions and 1 deletions
|
|
@ -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`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue