Mischievous Reddit bot
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.
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.