Skip to content

A telegram bot that watches subreddits for particular post titles

Notifications You must be signed in to change notification settings

Cabbache/redditSpyBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

redditSpyBot

A telegram bot that watches subreddits for particular post titles

What does it do

Every 5 minutes it gets the newest posts for the specified subreddits and if the post titles match the regex then the telegram bot will notify the user.

Features

  • Supports watching of multiple subreddits at once
  • Supports regex per subreddit
  • Can also dump all text a user has written into reddit (comments/posts etc)
  • Does not use Praw, hence no reddit credentials are required

Python dependencies

Installation

Install the dependencies:

pip3 install -r requirements.txt

Generate a token for your bot by talking to the Telegram bot father. Change the token in the source code to that of your bot.

Run bot:

python3 bot.py

Usage

  • /watch <subreddit name> <optional regex> - Add subreddit to your watchlist. If regex is not provided, all posts will be matched. If subreddit is already on the watchlist, the regex will be updated
  • /unwatch <subreddit name> - Remove subreddit from watchlist
  • /list - Show all subreddits on the watchlist
  • /dump <reddit username> - Gets all text a user has written in reddit and sends it as a text file
  • /enable - Start polling subreddits on watchlist for posts every 5 minutes. (Disabled by default)
  • /disable - Stop polling subreddits
  • /regshow <subreddit name> - Show regex used for a particular subreddit
  • /regclear <subreddit name> - Clear regex used for a subreddit to match all posts
  • /help - Show help message

About

A telegram bot that watches subreddits for particular post titles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published