A modular typescript reddit moderation tool with a rule-action paradigm as a supplement to automod
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
An iterative improvement upon its predecessor, Gort is a typescript reddit moderation bot which can act as a supplement (or upgrade) to reddit's automoderator, born out of a need for more complicated rulesets and context-sensitive actions. Rules can be created simply using in-built helper classes, allowing non-programmers to make additions.
My aim for the future of the project is to create an easy-to-use web-interface that will allow moderators to configure the bot at runtime. Another posibility includes configuring the bot through reddit wiki pages.
- NodeJS
- Discord.js
- Snoowrap
- Blood, sweat and tears
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/jamesxx/gort.git
- Install NPM packages
npm install
- Configure the bot in
.env
DISCORD_TOKEN= REDDIT_USERAGENT= REDDIT_CLIENTID= REDDIT_CLIENTSECRET= REDDIT_USERNAME= REDDIT_PASSWORD= REDDIT_SUBREDDIT= DATABASE_URI=
Once configured, Gort can be used to perform automated actions on new comments and submissions in your subreddit based on logic defined in its ruleset. This includes banning users, locking or removing comments, replying to a new comment or submission automatically (which itself can be locked and/or distinguished), adding a usernote on a user, or making a notification to a chosen Discord channel.
More niche uses include getting notified about new comments or submission made by selected users, and detecting comments made by traffic originating from other subreddits from which yours has been linked, as a means of detecting and thwarting brigading.
For more examples, please refer to the Documentation
- Detect repeat posts automatically
- Detect whether a user is making a comment in your subreddit for the first time
- Catch editted and modqueued items aswell, not only new comments/submissions
- Modmail notifications
- Call commands as a comment, to make mobile moderation easier
- Web interface
- Persistent variables and customisation from web for rules
- Stats interface to monitor subreddit health
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GPL-3.0-only License. See LICENSE.md for more information.
- Icons made by Freepik from www.flaticon.com
- iMrDJAi's maintained fork of Snoowrap