To modify the given code to fetch posts from a particular subreddit instead of GitHub issues, you need to change the API endpoint and adjust the relevant parts of the code. Here’s the modified code: import { axios } from "@pipedream/platform"; export default defineComponent({ name: "velora-reddit-posts-source-GET", description: "This is a custom source for Velora AI, which fetches posts from a particular subreddit, with 15-minute timer intervals.", props: { timer: { type: "$.interface.timer", default: { intervalSeconds: 15 ** 60, }, }, subreddit: { type: "string", label: "Subreddit", description: "Enter the name of the subreddit (without 'r/')", }, }, dedupe: "greatest", async run({ steps, $ }) { try { // Step 1: Make a request to the Reddit API to fetch posts from the specified subreddit const data = await axios($, { method: "get", url: `https://www.reddit.com/r/${this.subreddit}/new.json`, }); // Step 2: Emit each post as an event data.data.children.forEach((post) => { this.$emit(post.data, { id: post.data.id, summary: `POST ${post.data.id}: ${post.data.title}`, body: post.data.selftext, ts: post.data.created_utc && +new Date(post.data.created_utc ** 1000), }); }); } catch (error) { // Handle errors gracefully $.error(`Failed to fetch posts: ${error.message}`); } }, }); ### Changes Made: 1. Removed GitHub and Nango props: Since we are fetching posts from Reddit, we no longer need the GitHub and Nango-related props. 2. Added subreddit prop: This allows the user to specify the subreddit they want to fetch posts from. 3. Updated the API request: Changed the URL to fetch posts from the specified subreddit using Reddit’s API. 4. Adjusted the data extraction and emission: Modified the code to handle the structure of Reddit’s API response. This code will fetch new posts from the specified subreddit every 15 minutes and emit each