Getting Started/Examples
{ const Reddit = reddit = ; // Misc methods. reddit; // Logs when the package is looking through the subreddits. reddit; // Sets the number of minutes to look for new posts, default: 1 minute. redditauthor // Returns the author of the package. redditversion // Returns the version of the package. // sub methods. await redditsub // Adds 1 subreddit to be watched. await redditsub // Removes 1 subreddit from being watched. redditsub // Lists all subreddits you have being watched. await redditsubbulk // Adds multiple subreddits to be watched. await redditsubbulk // Removes multiple subreddits from being watched. // .on methods. reddit // This is emitted once the "start" function is called. reddit; // This is emitted once the package has an error reddit; // This is emitted once new posts from that subreddit is "new" (sub: string, data: Array) // Start await redditstart; // This starts the operation to look for new posts. }; ;