Emulate Reddit forums in Discord!
- multiple images
- videos
- no duplicates
- lightweight
npm i- Modify
config.jswith your config. Everything withREPLACE_MEmust be replaced. SCROLL DOWN FOR INSTRUCTIONS. node ., and that's it!
-
Create a Reddit account
- Change
"username"underredditto the account's username. - Change
"password"underredditto the account's password.
- Change
-
Create a Reddit app here
-
Create a Discord bot, tutorial here
- Change
"token"toBot <your_token>, example:Bot O89gea98hgn - Change
"guildID"undercustomto the ID of the server you want to use the bot in.
- Change
-
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 totoken: process.env.discord_token,and in env you would puttoken=Bot <your_token>.
Done!
--forcefetchto quickly check if it works.- The bot will now post every 6 hours. (modify the duration inside the code in the "ready" event [line 37] )
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.


