Inspiration

as reddit communities grow, moderation becomes very difficult. spam, low effort posts from new accounts, and long chains of toxic comments take up a lot of time for moderators. we wanted to build a single toolkit that handles all these things automatically and also gives manual bulk action tools.

What it does

mahasena mod toolkit is a complete moderation suite built on devvit. it has these main features:

  • gatekeeper: it automatically checks new users for minimum account age and karma requirements. if they fail, their posts are removed.
  • watchdog: it monitors community reports and takes automatic action when a certain threshold is reached.
  • the mop tool: a quick action tool that allows moderators to instantly remove and lock an entire comment thread and all its replies with a single click. it can also skip other moderator comments.
  • mod activity log: a beautiful dashboard that tracks all the automated and manual actions taken by the toolkit.

How we built it

we built mahasena using reddit developer platform called devvit. we used typescript for the backend logic and custom ui components for the frontend forms and webviews. we also used devvit redis database to store the mod log data using sorted sets and to save subreddit specific settings.

Challenges we ran into

creating a smooth webview experience that looks professional took a lot of effort. making sure the mop tool correctly goes through all comment replies recursively without hitting rate limits was also a big challenge.

What's next for Mahasena Mod Toolkit

we plan to add advanced analytics and a mod leaderboard to the dashboard. this will allow head mods to see their team performance over a month.

Built With

Share this project:

Updates