Code Monkey home page Code Monkey logo

tftsbot's Introduction

StoryBot for Reddit

Description

StoryBot works like the more famous BeetusBot. It posts other submissions by the same author on new submissions, it allows you to subscribe to a specific author so that you will receive a new message every time this author posts a new submission. If you no longer want messages you can unsubscribe from a specific author.

Installation

The bot runs on Python 2.7 with the following package:

which can be easily installed using pip

pip install praw

Configuration

Open the config.ini and edit it accordingly. These are the things you have to edit:

[reddit]
username=username ; reddit username of your bot
password=password ; reddit password of your bot
subreddit=badpeoplestories ; subreddit in which the bot should work

[technical]
debug=on ; set debug=off to allow your bot to comment and send messages

Usage

I would recommend that you bot's account should have some link karma so that it can send messages without captcha restrictions.

If you execute the bot.py with

python bot.py

it will crawl the /new page and check each new submissions. For each submission it will use the search function with (author:) to find other submissions in the same subreddit by the same other. If it found any it will post a comments including its findings. Also it will message all subscribers.

Requests / Questions

If you have any requests or actions feel free to open an issue, message me on reddit (/u/tst__) or write me an email.

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.