whatisgithub

What is mod-agent-for-discord-?

rollsro9/mod-agent-for-discord- — explained in plain English

Analysis updated 2026-05-18

1TypeScriptAudience · ops devopsComplexity · 3/5LicenseSetup · moderate

In one sentence

An AI-powered Discord moderation bot that reads chat context to flag scams, spam, and harassment for human moderators to review, without ever banning anyone automatically.

Mindmap

mindmap
  root((ModAgent))
    What it does
      Flags suspicious messages
      Answers member questions
      Welcomes new members
      Sends daily digest
    Tech stack
      TypeScript
      Discord API
      LLM providers
    Use cases
      Community moderation
      FAQ automation
      Server onboarding
    Audience
      Discord admins
      Community managers
    Design
      Human in the loop
      Cost controlled
      Graceful degrade

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Set up an AI moderator that flags scam and spam messages for staff review instead of banning automatically.

USE CASE 2

Give a Discord server an assistant that answers member questions using a FAQ.

USE CASE 3

Automatically welcome new members with a short personalized message.

USE CASE 4

Get a daily digest of server activity, moderation flags, and AI spend.

What is it built with?

TypeScriptNode.jsDockerDiscord API

How does it compare?

rollsro9/mod-agent-for-discord-0xkinno/neuralvault0xmayurrr/ai-contractauditor
Stars111
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatehardeasy
Complexity3/54/52/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a Discord bot token and an API key for at least one LLM provider.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

ModAgent is a self-hosted Discord bot that helps moderators keep their community safe by reading messages with the help of AI language models instead of just matching keywords. Regular auto-moderators often flag words like "kill" even when someone is just talking about a video game, because they cannot tell the difference between a joke and a real threat. ModAgent tries to understand the context of a conversation, including sarcasm and gaming banter, before deciding whether something needs attention. Importantly, the bot never bans, mutes, or deletes anything on its own. It only flags suspicious messages and posts a report with a recommendation in a private staff channel, leaving the final decision to human moderators. This human-in-the-loop approach is meant to avoid the frustration and false positives that come from bots taking automatic action. To keep costs low, ModAgent works in stages. First, a free regex filter checks for obvious red flags like scam links or spam. Only messages that pass this filter get sent to a cheap AI model for a first classification. If that model flags something as serious, a stronger and more expensive AI model reviews the full context before writing up a recommendation. A daily spending cap makes sure the bot never runs up a large bill, and if the budget runs out, it falls back to the free regex filtering so the server stays protected. Beyond moderation, ModAgent can answer member questions using a FAQ as its source of truth, welcome new members with short personalized messages, and send a daily summary to staff covering activity, flags, and how much was spent on AI calls that day. It can connect to several different AI providers, including OpenAI-compatible services, self-hosted models, or the Anthropic Claude API, so server owners can choose what fits their budget. Setup involves creating a Discord application, configuring a few settings like the staff channel, and running the bot with Node.js or Docker. The project is released under the MIT license, meaning it can be used and modified freely.

Copy-paste prompts

Prompt 1
Walk me through setting up ModAgent on my Discord server step by step, including the bot permissions I need.
Prompt 2
Explain how ModAgent's three-stage moderation pipeline (regex, cheap classifier, strong model) keeps AI costs low.
Prompt 3
Help me configure config.yaml for ModAgent, including the mod channel and daily budget cap.
Prompt 4
Show me how to run ModAgent in Docker on a VPS with a persistent config file.
Prompt 5
What LLM providers can I connect to ModAgent, and how do I switch between them?

Frequently asked questions

What is mod-agent-for-discord-?

An AI-powered Discord moderation bot that reads chat context to flag scams, spam, and harassment for human moderators to review, without ever banning anyone automatically.

What language is mod-agent-for-discord- written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Docker.

What license does mod-agent-for-discord- use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is mod-agent-for-discord- to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is mod-agent-for-discord- for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.