Automate Reddit with TypeScript

Publish and manage posts and comments, inspect communities and inboxes, moderate queues, and react to new subreddit activity through durable polling triggers.

watch-reddit.automation.ts
import { automation } from "automate.ax"
import { reddit } from "automate.ax/reddit"

export default automation("Watch product feedback", () => {
  const event = reddit.onSubredditEvent({ subreddit: "AutomateAx" })

  if (event.action === "postCreated") {
    reddit.saveContent({ contentId: event.post.id })
  }
})

What you can do

Actions

  • Read, search, publish, edit, save, and report content
  • Manage subreddit subscriptions and private messages
  • Approve, remove, lock, unlock, and flair moderated content
  • Inspect profiles, communities, inboxes, and moderation queues

Triggers

  • New posts and comments in a subreddit
  • Broad subreddit content events
  • New unread inbox items
  • New moderation queue items

Start automating with Reddit today

Start building