Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.35 KB

README.md

File metadata and controls

32 lines (19 loc) · 1.35 KB

copy-kun

Copy-kun is a Reddit bot that monitors a subreddit for posts that link to other Reddit content and comments with a copy of that content.

Copy-kun features:

  • Automatically copy any reddit post or comment linked
  • For comments, build a full comment tree from the root post to the linked comment
  • Monitor content for edits and update copies with changes (displayed as a diff)
  • Optional: respond to summons (via username mention) to reply with a copy of a link's content
  • Optional: include boilerplate and/or taglines in a header or footer
  • Optional: forward messages received by the bot to another account

Requirements

Copy-kun depends on PRAW for reddit requests and peewee for database functionality

OAuth

To get your refresh token you will need to request it from the reddit site, read the praw oauth section and use thier Refresh Token Script

Setup

Edit copykun_sample.cfg and example.praw.ini with your bot's account details and options, and rename the files to "copykun.cfg" and "praw.ini" respectively.