A bot that replies to negative comments with nihilism
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Procfile
README.md
package.json
replies.js
server.js

README.md

nihilistic-reddit-bot

This is a Node.js Reddit bot that captures comments with negative sentiment, and replies to them with nihlism.

Setup

Start by setting up the required environment variables either in a local .env file or as Heroku config vars.

# API info
CLIENT_ID=***
CLIENT_SECRET=***
REDDIT_USER=***
REDDIT_PASS=***
# Comment stream setting
RESULTS=25
# Sentiment settings
METRIC_THRESHOLD=-15
WORD_COUNT_THRESHOLD=80
# Subreddit(s) to stream comments from
SUBREDDIT=subreddit1+subreddit2+...

Build

$ npm install

Usage

$ npm start

Related

  • snoostorm - An event based library for streaming from the Reddit API Built on top of snoowrap
  • snoowrap - A JavaScript wrapper for the Reddit API
  • sentiment - AFINN-based sentiment analysis for Node.js