Skip to content

Experiment

Discord guardian: a moderation bot that answers questions

The Discord guardian is a moderation bot that times out unwanted links and answers questions in English and Bulgarian, using Google Gemini. Slash commands set what it watches, so a community runs itself without a moderator online.

Built in the labLast reviewed 1 min read

Mai has built this in his own research.

Community bot

  • JavaScript
  • discord.js
  • Gemini
  • Supabase
On this page

In plain English

The Discord guardian is a moderation bot. It times out unwanted links and answers questions in English and Bulgarian, using Google Gemini, so a community runs itself without a moderator online.

How it works

Slash commands set the watched channel, the timeout length and exemptions for trusted users and roles. It is written in JavaScript with discord.js, uses Gemini for answers and Supabase for storage. The code is on GitHub.

Questions and answers

What does the Discord guardian bot do?

It times out people who post unwanted links and answers questions in English and Bulgarian, using Google Gemini.

How do you configure the Discord guardian?

With slash commands: you set the watched channel, the timeout length and exemptions for trusted users and roles.

Does the bot need a moderator online?

No. That is the point of it: once it is set up, the community runs itself without a moderator online.

Sources

  1. discord_bot on GitHubgithub.com