Skip to content

A simple submission reply bot for NodeJS and the Reddit API using snoowrap

License

Notifications You must be signed in to change notification settings

probablyraging/reddit-auto-submissions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedditBot

A simple submission reply bot for NodeJS and the Reddit API using snoowrap

Config

Rename .env.example to .env and input your own credentials. Create an app and find your credentials here:

C_ID=""
C_SECRET=""
USER_AGENT=""
USER_NAME=""
PASSWORD=""

Create a .txt file named replied_to.txt in the same directory for where the bot will log the submissions we have already replied to:

# A file to log the submissions that we have replied to already
REPLIED_LOG="./replied_to.txt"

Set an interval for how frequently we should reply to submissions

# Time to wait between replying to submissions - in seconds
REPLY_WAIT="5"

Rename subreddits.js.example to subreddits.js and include the names of any subreddits you want the bot to check for new submissions in:

module.exports = {
    name: [
        'gifs',
        'news',
        'pcmasterrace',
    ]
}

Rename replies.js.example to replies.js and include some custom replies that the bot will randomly choose from when commenting on a submission:

module.exports = {
    comment: [
        `Wow, such great content, congrats!`,
        `Cool thread, I gave you an upvote!`,
    ]
}

About

A simple submission reply bot for NodeJS and the Reddit API using snoowrap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published