🤖
FlexyBot
🤖
FlexyBot
  • General
    • Creating Discord Bot
    • Applications
    • Automations
    • Connections
    • Useful links
    • Variables
  • Modules
    • Discord
      • Triggers
        • Member Joined
        • Member Removed
        • Guild Message Created
        • Direct Message Created
        • Guild Message Reaction Added
        • Guild Message Reaction Removed
        • Message Button Clicked
        • Guild Message Deleted
        • Member Joined Voice Channel
        • Member Left Voice Channel
        • Member Deafened
        • Member Undeafened
        • User Command
        • Message Command
        • Chat Command
        • Event Created
        • Event Deleted
        • Event Interest Added
        • Event Interest Removed
        • Thread Message Created
        • Post Message Created
      • Steps
        • Conditions
          • User Has Role
          • User Does Not Have Role
        • Get Custom Emojis
        • Reply to Interaction
        • Set Presence
        • Show Modal
        • Get Emoji
        • Get Direct Message Channel
        • Get User
        • Ban Member
        • Change Member Nickname
        • Get Members by Name
        • Get Members With Roles
        • Get Member
        • Kick Member
        • Timeout Member
        • Get All Members
        • Get Members By Status
        • Add Reaction
        • Delete Message
        • Delete Messages
        • Get Message History
        • Pin Message
        • Remove Message Reaction
        • Reply to Message
        • Send Message
        • Send Typing
        • Send Direct Message
        • Unpin Message
        • Get Message
        • Wait For Button Interaction
        • Wait For Select Menu Interaction
        • Create Category
        • Create Announcement Channel
        • Create Forum Channel
        • Create Invite
        • Create Stage Channel
        • Create Text Channel
        • Delete Channel
        • Get Channel By Name
        • Make Channel Private
        • Make Channel Public
        • Move Channel
        • Sync Permissions
        • Rename Channel
        • Get Channel Category
        • Create Voice Channel
        • Disconnect Member from Voice
        • Move Voice Member
        • Set Member Deafen
        • Set Member Mute
        • Join Voice Channel
        • Leave Voice Channel
        • Play Audio
        • Verify Audio URL
        • Get Audio Duration
        • Get Connected Members
        • Defer Reply
        • Create Event
        • Close Thread Channel
        • Create Thread Channel
        • Lock Thread Channel
        • Open Thread Channel
        • Unlock Thread Channel
        • Add Roles to Member
        • Create Role
        • Delete Role
        • Get Roles by Name
        • Get Guild Roles
        • Remove Role From Member
        • Get Member Roles
        • Get Default Role
        • Set Channel Member Permission Overrides
        • Set Channel Role Permission Overrides
        • Set Role Permissions
        • Get Member Permissions
        • Create Forum Post
        • Get Guild
        • Get Channel
        • Wait for message reaction
        • Add Thread Member
        • Remove Thread Member
        • Get guilds
        • Leave guild
      • Data Types
        • Guild
        • User
        • Member
        • Message
        • Discord Timestamp
      • Tagging
    • Minecraft
    • FiveM
    • Core
      • Triggers
        • Connection Started
        • Schedule
        • Form
      • Steps
        • Date Calculator
        • Format Date
        • Get Current Date
        • Parse Date
        • Toggle Automation
        • Make Overlay
        • Download Image
        • Nothing
      • Data Types
        • Text
        • Number
        • Integer
        • Boolean
        • Color
        • Date
        • Duration
        • List
        • Object
    • Lists
      • Steps
        • Add Item to List
        • Map List Items
        • Reverse List
        • Filter List Items
        • Randomize List
        • Get List Size
        • Get List Item
    • Text
      • Steps
        • Split Text
        • Get Text Length
        • Get Characters
        • Join Text
        • Slice Text
        • Extract Numbers
    • Scripting
      • Triggers
        • Webhook
        • Function
      • Steps
        • Conditions
          • And
          • Or
          • Equals
          • Does Not Equal
          • Greater Than
          • Greater Than Or Equal
          • Less Than
          • Less Than Or Equal
          • Text Contains
          • Text Does Not Contain
          • List Contains
          • List Does Not Contain
          • List Is Empty
          • List Is Not Empty
          • Is Null
          • Is Not Null
          • Matches Regular Expression
          • Does Not Match Regular Expression
        • Only Continue If
        • If Else
        • Delay
        • For Each Loop
        • While Loop
        • Paths
        • Make HTTP Request
        • Parse JSON
        • Stringify JSON
        • Throw Exception
        • Create Text File
        • Execute Function
        • Stop Automation
        • Switch
        • Try Catch
        • Comment
        • Return
    • Variables
      • Steps
        • Create Custom Variable
        • Update Global Variable
        • Update Custom Variable
        • Create Global Variable
        • Get Global Variable Value
    • Math
      • Steps
        • Round
        • Calculator
        • Get Maximum Value
        • Get Minimum Value
        • Get Random Number
    • Database
      • Steps
        • Create Table
        • Find
        • Find One
        • Insert
        • Find Or Insert
        • Update
        • Delete
    • Reddit
      • Steps
        • Get Posts
    • OpenAI
      • Steps
        • Make Chat Completion
        • Generate Image
        • Text To Speech
        • Speech To Text
        • Create Message
    • Cache
      • Steps
        • Put
        • Get
        • Exists
        • Delete
  • Frequently asked questions (FAQ)
  • Tutorials
    • Discord Getting Started Guide
      • Connections
      • Auto Message Automation
      • Creating simple chat command
      • Sending a welcome message to new members
  • Public bot features
    • Member counter
Powered by GitBook
On this page

Was this helpful?

  1. Modules
  2. Reddit
  3. Steps

Get Posts

Introduction

The "Get Posts" step allows automations to fetch posts from a specified subreddit on Reddit. This step can be configured to retrieve posts based on different sorting criteria, such as hot, top, new, rising, or controversial, providing flexibility in content curation and interaction.

Configuration

  • Connection: Select the Reddit connection to be used for making requests to Reddit API. More details about Connections

  • Subreddit: The name of the subreddit from which to fetch posts. Must be a valid subreddit name.

  • Sorting: The type of sorting for posts to fetch. Options include "hot", "top", "new", "rising", and "controversial".

  • Before: Optionally specify the fullname of an item in the listing to fetch posts before it. Useful for pagination.

  • After: Optionally specify the fullname of an item in the listing to fetch posts after it. This is used for pagination and overrides "Before" if both are specified.

  • Limit: The number of posts to fetch. Must be between 1 and 50, with a default of 20.

  • Skip: The number of posts to skip. Useful for pagination with a default of 0.

Outputs

  • Posts: A list of posts fetched from the specified subreddit. Each post includes:

    • ID: The unique identifier of the post.

    • Title: The title of the post.

    • Self Text: The text content of the post, if any.

    • Subreddit: The subreddit in which the post was made.

    • URL: The URL of the post.

    • Permalink: The permalink to the post.

    • Score: The score of the post.

    • Upvotes: The number of upvotes the post has received.

    • Downvotes: The number of downvotes the post has received.

    • Upvote Ratio: The ratio of upvotes to total votes.

    • Comment Count: The number of comments on the post.

    • Is Self: Whether the post is a self-post (text) or a link/image post.

    • Stickied: Whether the post is stickied.

    • Pinned: Whether the post is pinned.

    • Over 18: Whether the post is marked as NSFW (not safe for work).

    • Spoiler: Whether the post is marked as containing spoilers.

    • Locked: Whether the post is locked.

    • Thumbnail URL: The URL of the post's thumbnail, if any.

    • Created At: The creation time of the post.

Usage

This step is ideal for automations that involve monitoring subreddit activity, curating content, or engaging with communities by fetching and processing Reddit posts. By configuring the step with specific criteria, bots can provide timely updates, insights, and interactions based on subreddit content, enhancing the value they bring to Discord servers or other platforms.

PreviousStepsNextOpenAI

Last updated 1 year ago

Was this helpful?