Skip to content

ObertoIsOBS/reddit.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Reddit.js an intuitive wrapper that lets you interact easily with the reddit api.

  • Promise based
  • Object Oriented
  • Best API coverage
  • Predicatable Errors
  • Fully Documented

Installation

Ignore unmet dependency warnings. They are optional.

npm i js-reddit.js.

Example Usage

const Reddit = require('js-reddit.js'); //Install reddit.js by running npm install js-reddit.js in your terminal. (Must have NodeJS Installed)
const opts = {
    username: 'RedditGuy',
    password: 'RedditGuy',
    appId: 'secretID',
    appSecret: 'appSecret',
    userAgent: "Anything goes."
  };
const client = new Reddit.Client();

client.login(opts);

client.on("ready", () => {
  console.log(`Logged in as ${client.user.name}!`);
})

Contributing

Want to become a developer on this project? Email me at obs@obs.wtf or on discord.

Please double check JSDoc notes before making a pull request or issue.

Support

If you need help with this wrapper please join our support server.

Releases

No releases published

Packages

No packages published