Skip to content

Emulate Reddit forums in Discord!

Notifications You must be signed in to change notification settings

xHaruke/corddit-text

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Corddit

Emulate Reddit forums in Discord!

Features

  • multiple images
  • videos
  • no duplicates
  • lightweight

How to

Installation

  1. npm i
  2. Modify config.js with your config. Everything with REPLACE_ME must be replaced. SCROLL DOWN FOR INSTRUCTIONS.
  3. node ., and that's it!

Configuration

  • Create a Reddit account

    • Change "username" under reddit to the account's username.
    • Change "password" under reddit to the account's password.
  • Create a Reddit app here

    • Select the 3rd option: "script". Example
    • Set "name" and "redirect_uri" to whatever you wish.
    • Click create.
    • Change "clientID" and "clientSecret" under reddit according to the picture. Example
  • Create a Discord bot, tutorial here

    • Change "token" to Bot <your_token>, example: Bot O89gea98hgn
    • Change "guildID" under custom to the ID of the server you want to use the bot in.
  • Remove "[REPLACE_ME]" || in the config.js if you are going to be using env. e.g. token: "Bot [REPLACE_ME]" || process.env.discord_token, would be changed to token: process.env.discord_token, and in env you would put token=Bot <your_token>.

Done!

Usage

  1. --forcefetch to quickly check if it works.
  2. The bot will now post every 6 hours. (modify the duration inside the code in the "ready" event [line 37] )

Bugs

Because the library used for Reddit is quite old ("snoowrap", 2 years), ratelimits are not handled at all. You might experience the process crashing with 429 errors. To prevent this, lower the amount of posts fetched. The max should be 1000-900 posts in 10 minutes, if we are to trust the X-ratelimit headers.

Make sure to add a ⭐ if you are using the bot

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%