Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
forked from lowJ/reddit-bot

A discord bot for getting reddit posts

Notifications You must be signed in to change notification settings

chiefdeals/discord-reddit-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

reddit-bot

A discord bot for getting reddit stuff

Setup

  1. Download my file, create a new directory and put my file in it, this will be the directory of the bot.
  2. Install Node js. (https://nodejs.org/en/).
  3. In command line cd to the bot directory.
  4. Run "npm install request --save", this will install the request module.
  5. Run "npm install --save discord.js", this will install the discord.js module.
  6. Now you need to create your own discord app. (https://discordapp.com/developers/applications/me).
  7. After filling in a name go to the next page, make sure it is a bot user (click "create bot user").
  8. You can check the "Public Bot" if you want other people to be able to add your bot.
  9. Take note of your token and client id, and go into the index.js file on line 5 where it says "bot.login".
  10. Delete anything in the parenthesis and put token in, make sure its in quotes.
  11. Next go to (https://discordapi.com/permissions.html) this will allow you to create permissions for your bot and add it to any of your servers(if you have enough perms).
  12. For basic's you can select everything in text permissions. Then go to the bottom left and put in your client id. Click the link to add the bot.
  13. To turn the bot on, make sure you are cd in your bot directory, run "node index.js".

Other You can change the command prefixes (default is "rr"). Go in index.js change the "suf" variable.

Basic commands get/set [subreddit] [tab] - Will get a reddit page and set it to the current page. "front" or "frontPage" Will go to front page. Tab is an optional parameter.

list - Will list all posts on the current page, numbered.

[number] - Choose the number of the post on the current page and returns a link of the post.

Example "rr get front top" "rr list" "rr 10"

About

A discord bot for getting reddit posts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%