Browse Source

Merge branch 'develop' of Mastodon/bots into main

Pablo Yaksic 1 week ago
parent
commit
c416b7192f
3 changed files with 4 additions and 3 deletions
  1. 1 1
      package.json
  2. 1 1
      src/agents/video-streams/definition.yml
  3. 2 1
      src/agents/video-streams/index.ts

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "bot-noticias",
-  "version": "0.0.32",
+  "version": "0.0.33",
   "description": "Bot que busca noticias y las replica en mastodon.cl",
   "main": "dist/index.js",
   "scripts": {

+ 1 - 1
src/agents/video-streams/definition.yml

@@ -1,4 +1,4 @@
 video-streams:
   handler: ./src/agents/video-streams/index.handler
   events:
-    - schedule: rate(1 hour)
+    - schedule: cron(15 * * * ? *)

+ 2 - 1
src/agents/video-streams/index.ts

@@ -132,6 +132,7 @@ export default class VideoStreams {
         const scrapeOptions: any = {
           url: stream.url,
           scraperMethod: ScraperMethods.PUPPETEER,
+          incognito: true,
           screenshotDelay: stream.screenshotDelay ?? config.VIDEO_STREAMS_SCREENSHOT_DELAY
         };
 
@@ -184,7 +185,7 @@ export default class VideoStreams {
 try {
   const videoStreams = new VideoStreams(config.DEVELOP ? config.MASTODON_TEST_ACCESS_TOKEN : config.MASTODON_KEY_VIDEO_STREAMS);
   new CronJob(
-    "0 0 * * * *",
+    "0 15 * * * *",
     () => videoStreams.run(),
     null,
     true,