File size: 546 Bytes
3206347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import defineTrigger from '../../../../helpers/define-trigger.js';
import newItemsInFeed from './new-items-in-feed.js';

export default defineTrigger({
  name: 'New items in feed',
  key: 'newItemsInFeed',
  description: 'Triggers on new RSS feed item.',
  pollInterval: 15,
  arguments: [
    {
      label: 'Feed URL',
      key: 'feedUrl',
      type: 'string',
      required: true,
      description: 'Paste your publicly accessible RSS URL here.',
      variables: false,
    },
  ],

  async run($) {
    await newItemsInFeed($);
  },
});