Giter VIP home page Giter VIP logo

redditbots's Introduction

bot_skit

bot_skit is a jumping-off-point for building complex interactions with strangers on Reddit. Through its use, you are able to watch Reddit's stream of comments and react to certain phrases by posting replies. You may also watch for and respond to direct replies to your previous comments.

Please use it for good.

installation

bot_skit is simple to set up.

  1. ensure that node is installed
  2. clone this repo
  3. run npm install
  4. setup a bots.yml
  5. node init.js

bots.yml

TODO: Will need to better configure the passing of the header to the bot

To use bot_skit you must specify a bots.yml file. bots.yml defines a list of bot objects which each look for and respond with a particular type of message. A bot object looks like this:

- name: BillyPilgrim
  pass: pooteeweet
  message: [So it goes.](http://en.wikipedia.org/wiki/billy_pilgrim).
  isParent: true
  filter:
    parent: hunter
    keywords:
      - 'kilgore'
      - 'trout'

If you're not familiar with yaml, you'll be defining an array of objects that look like this:

[{
  name     : String,
  pass     : String,
  message  : String <Markdown>,
  isParent : Boolean (optional),
  filter   : {
    parent   : String (optional),
    keywords : [String]
  }
}]

A bot_skit requires one parent bot and may contain any number of children, grand children, et cetera

name

name String the account that bot_skit will log in as to send the associated message. You'll have to have previously set up this account.

pass

pass String the password associated with name

message

message String a string of markdown that describes the comment to be posted

isParent

isParent Boolean an optional parameter describing whether or not the bot has any children watching for its replies. Defaults to false.

filter

filter Object describes the type of comments that a bot will respond to. It contains one keyword and one optional parent param.

  • keywords is a list of strings to watch for
  • parent is an optional String which matches another bot in the troupe

redditbots's People

Contributors

robhaj avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.