diff options
author | Gianni Ceccarelli <gceccarelli@veritone.com> | 2023-10-05 16:03:44 +0100 |
---|---|---|
committer | Gianni Ceccarelli <gceccarelli@veritone.com> | 2023-10-05 16:03:44 +0100 |
commit | bf7d740cdd0a375f1950c38a2f5ccc66375b6030 (patch) | |
tree | 72a7295171ca29f42475ac729739d693e74ec791 /index.js | |
parent | works enough (diff) | |
download | puppa-master.tar.gz puppa-master.tar.bz2 puppa-master.zip |
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -72,10 +72,7 @@ function delayP(delay) { }); } -(async () => { - const channel = 'yogscast'; // a random channel - const runForMs = 3600 * 1000; // 1 hour - +async function watch(channel,runForMs=3600 * 1000 /* 1 hour */) { const x = await goThere(channel); const started = Date.now(); @@ -86,4 +83,14 @@ function delayP(delay) { } await x.browser.close(); +} + +const channels = [ 'yogscast', 'yogscast' ]; + +(async () => { + const watchers = channels.map( + (c) => watch(c) + ); + + await Promise.all(watchers); })(); |