Xion / spiteful

Mischievous Reddit bot that does things out of spite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spiteful

Mischievous Reddit bot

Build Status License

What it does?

Currently, it:

  • looks for new posts that have "don't upvote" (or similar) in the title and specifically upvotes them
  • looks for new comments that contain "does anyone else?" (or similar) and replies with No.
  • checks for upvote pleas (posts with "pls upvote" or similar) and downvotes them
  • listens for upvote baits (posts with "if this gets X upvotes" or similar) and downvotes them as well!

All those features can be turned on or off via the --features flag.

Development notes

To install the ICU library on Windows (necessary for text-icu dependency), use Stack's msys & Pacman:

stack exec -- pacman -Sy mingw64/mingw-w64-x86_64-icu

On OS X:

brew install icu4c
# run the first build
stack build \
  --extra-include-dirs=/usr/local/opt/icu4c/include \
  --extra-lib-dirs=/usr/local/opt/icu4c/lib

On most Linux distros, it should Just Work (tm). Otherwise, try installing libicu-dev or a similar package, and optionally fiddling with the stack build flags like above.

About

Mischievous Reddit bot that does things out of spite

License:GNU General Public License v2.0


Languages

Language:Haskell 100.0%