Reddit-Banbot is a reddit bot that can ban users from your community based on karma gained in unwanted communities.
You provide it with:
./run.sh
, or run the following command:
yarn && tsc -p . && node dist/out-tsc/banbot.js \
--clientId X \
--clientSecret X \
--username X \
--password X \
--badSubs={X1,X2} \ # {cringeanarchy, milliondollarextreme}
--subreddit X \ # the subreddit this user is a moderator of
--threadSort X \ # hour, day, week, month, year, all
--userCommentSort X \ # new, top
--badKarma X \ # A minimum accumulated bad karma threshold
--banDuration X \ # Number of days
--removeComments \ # optional, Removes their comments from the subreddit too
--save \ # Saves users, submissions, and ban report out to the saved folder
--dryRun # optional, doesnt ban
This is required to make API calls to reddit at the rate of at least 1 per second.
client_id
, and client_secret
for later use.Have a bug or a feature request? If your issue isn't already listed, then open a new issue here.