A multi-function Discord bot https://docs.discord.red
  • Python 98.8%
  • PLpgSQL 0.8%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mrcoolgamer11 9aedf89695
All checks were successful
Crowdin - Upload strings / Upload translation sources to Crowdin (push) Successful in -7s
Publish Release / Check release information (push) Successful in -2s
Lint Python / Lint Python (push) Successful in 6s
Check label pattern exhaustiveness / Check label pattern exhaustiveness (push) Successful in 36s
Security analysis / Bandit (push) Successful in 21s
Tests / Tox - Docs (push) Successful in 41s
Tests / Tox - Python 3.11 - Tests (push) Successful in 39s
Tests / Tox - Python 3.13 - Tests (push) Successful in 37s
Tests / Tox - Style (push) Successful in 30s
Tests / Tox - Python 3.14 - Tests (push) Successful in 41s
Tests / Tox - Postgres (Python 3.11) (push) Successful in 39s
Tests / Tox - Postgres (Python 3.13) (push) Successful in 37s
Tests / Tox - Postgres (Python 3.12) (push) Successful in 57s
Tests / Tox - Postgres (Python 3.14) (push) Successful in 40s
Publish Release / Build and release (push) Successful in 19s
Tests / Tox - Python 3.12 - Tests (push) Successful in 2m53s
Publish Release / Update Red version number to dev (push) Successful in 1s
Update wiki / Update wiki (push) Successful in 9m30s
Red 3.6.8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EihVZbZM2h45ekzVffj9t3
2026-11-25 21:29:30 +00:00
.forgejo [CI] Add the label pattern for the tests of the update messages 2026-11-23 15:44:43 +00:00
.github Merge PR #6746: Drop pytest plugin from Red's package 2026-11-21 21:21:17 +00:00
docker Add automatic updates 2026-11-23 15:39:05 +00:00
docs Red 3.6.8 2026-11-25 21:29:30 +00:00
redbot Red 3.6.8 2026-11-25 21:29:30 +00:00
requirements [Audio] Use a newer yt-dlp-ejs for the YouTube cipher server 2026-11-23 17:08:49 +00:00
schema [Downloader] Add max_python_version key to info.json 2026-11-22 15:11:07 +00:00
tests [Fluxer] Fix unbanning users that aren't banned and invite events 2026-11-25 21:29:30 +00:00
tools Merge PR #6746: Drop pytest plugin from Red's package 2026-11-21 21:21:17 +00:00
.bandit.yml do better with loop cleanup (#3245) 2020-01-01 19:26:32 -05:00
.cherry_picker.toml Add cherry_picker configuration (#5168) 2021-07-02 21:05:12 +02:00
.codeclimate.yml do better with loop cleanup (#3245) 2020-01-01 19:26:32 -05:00
.dockerignore Add Docker Compose as an installation method 2026-11-22 19:02:16 +00:00
.env.example Add automatic updates 2026-11-23 15:39:05 +00:00
.git-blame-ignore-revs Bump Black and its deps 2023-05-02 00:52:02 +02:00
.git_archive_info.txt Add support for sdists and git-archive to _get_version() (#5814) 2022-12-30 03:52:49 +01:00
.gitattributes Hide diffs for .po files by default (#6168) 2023-06-20 12:38:20 +02:00
.gitignore Update gitignore with more of Windows, Mac, Sublime, and PyCharm (#5079) 2021-05-25 17:40:08 +02:00
.pylintrc Remove deprecated options from .pylintrc (#6462) 2024-11-17 17:01:31 +00:00
.readthedocs.yml Merge PR #6735: Drop support for Python 3.8-3.10 2026-11-21 21:10:24 +00:00
CHANGES.rst Red 3.6.8 2026-11-25 21:29:30 +00:00
CONTRIBUTING.md Merge PR #6735: Drop support for Python 3.8-3.10 2026-11-21 21:10:24 +00:00
crowdin.yml Update Crowdin CLI to v3 (#6313) 2024-03-21 23:14:46 +01:00
docker-compose.yml Add automatic updates 2026-11-23 15:39:05 +00:00
Dockerfile Add automatic updates 2026-11-23 15:39:05 +00:00
LICENSE Update Audio terminology in LICENSE (#6193) 2023-06-20 12:00:01 +02:00
make.bat Drop support for Python 3.8-3.10 2026-04-12 13:36:07 +02:00
make.ps1 Merge PR #6735: Drop support for Python 3.8-3.10 2026-11-21 21:10:24 +00:00
Makefile Merge PR #6746: Drop pytest plugin from Red's package 2026-11-21 21:21:17 +00:00
MANIFEST.in Privatize APIs by renaming or removing them from __all__ (#6021) 2023-04-17 17:44:33 -04:00
pyproject.toml Merge PR #6746: Drop pytest plugin from Red's package 2026-11-21 21:21:17 +00:00
README.md Red 3.6.8 2026-11-25 21:29:30 +00:00
SECURITY.md Update supported versions in the security policy (#6222) 2023-08-06 19:29:51 +02:00
setup.py [Audio] Support Fluxer's voice channels 2026-11-23 13:46:25 +00:00
tox.ini [Audio] Support Fluxer's voice channels 2026-11-23 13:46:25 +00:00


Red - Discord Bot
Red Discord Bot

Music, Moderation, Trivia, Stream Alerts and Fully Modular - for Discord and Fluxer.

Discord Server PyPI Python 3.11 - 3.14 discord.py Support Red on Patreon!

Forgejo Actions Red on readthedocs.org Code Style: Black Localized with Crowdin

Overview • Installation • Fluxer • What's new • Documentation • Plugins • Development • Community • License

Overview

Red is a fully modular bot – meaning all features and commands can be enabled/disabled to your liking, making it completely customizable. This is a self-hosted bot – meaning you will need to host and maintain your own instance. You can turn Red into an admin bot, music bot, trivia bot, new best friend or all of these together!

Red is built for Discord, a popular VOIP and instant messaging platform. It's best suited for use in guilds (also known as servers), where it utilizes Discord's well-documented API to communicate and deliver its many features. Discord offers its API to encourage developers to explore their creativity by building programs, tools, and services that enhance the Discord experience.

This fork can also connect to Fluxer, a free and open source chat platform with a Discord-like API - both to the official instance and to self-hosted instances. See Fluxer below.

Installation is easy, and you do NOT need to know anything about coding! Aside from installing and updating, every part of the bot can be controlled from within Discord.

The default set of modules includes and is not limited to:

  • Moderation features (kick/ban/softban/hackban, mutes and timeouts, warnings, mod-log, filter, chat cleanup)
  • Trivia (lists are included and can be easily added)
  • Music features (YouTube, SoundCloud, Discord attachments, local files, playlists, queues, vote skipping, voice channel status)
  • Stream alerts (Twitch incl. Twitch Teams, Youtube, Picarto - with game allow lists and custom messages per streamer)
  • Bank (slot machine, user credits)
  • Custom commands
  • Imgur/gif search
  • Admin automation (self-role assignment, cross-server announcements, mod-mail reports)
  • Customisable command permissions

Additionally, other plugins (cogs) can be easily found and added from our growing community of cog repositories.

Installation

Red requires Python 3.11, 3.12, 3.13 or 3.14 (Python 3.8 - 3.10 are no longer supported).

The following platforms are officially supported:

Docker Compose works on every system that supports Docker:

git clone --branch 3.6.8 https://git.nebendahl.eu/Mrcoolgamer11/Red-DiscordBot.git
cd Red-DiscordBot
cp .env.example .env    # set RED_TOKEN and RED_PREFIX
docker compose up -d --build

See docs/install_guides/docker.rst (or the wiki) for all settings, PostgreSQL and updating. New releases can be installed automatically: set COMPOSE_PROFILES=autoupdate in .env and run docker compose up -d.

To install this fork with pip instead of the version from PyPI, follow the install guide for your platform, but install Red from this repository in the "Installing Red" step:

python -m pip install -U "Red-DiscordBot @ git+https://git.nebendahl.eu/Mrcoolgamer11/Red-DiscordBot.git@V3/develop"

If after reading the guide you are still experiencing issues, feel free to join the Official Discord Server and ask in the #support channel for help.

Fluxer

Red can run on Fluxer instead of Discord, both on the official instance (https://fluxer.com) and on self-hosted instances. The endpoints of an instance (API, gateway, media proxy) are discovered automatically from <instance>/.well-known/fluxer, so only the URL of the instance is needed.

New instance: run redbot-setup, choose Fluxer and enter the URL of your instance (or press Enter for the official one):

redbot-setup --instance-name mybot --fluxer-instance https://chat.example.com

Existing instance:

redbot mybot --edit --platform fluxer --fluxer-instance https://chat.example.com --token <token>

The platform can also be chosen on startup with --platform {discord,fluxer}, --fluxer-instance URL and --fluxer-api-url URL (only needed if discovery doesn't work), or with the environment variables RED_PLATFORM, RED_FLUXER_INSTANCE and RED_FLUXER_API_URL. [p]debuginfo shows which platform and instance the bot is connected to.

Audio works on Fluxer as well: Fluxer's voice channels use LiveKit, so Red forwards the audio of Lavalink to them through a local voice bridge (all Audio features, including YouTube, filters and the equalizer, keep working). It needs pip install "Red-DiscordBot[fluxer]" and the Opus library, the Docker image already contains both.

Limitations: Fluxer doesn't have application commands (slash commands) or buttons/select menus/modals (Red falls back to reactions). Privileged intents don't exist, all events are always received. Discord and Fluxer use different IDs, so use a separate instance per platform.

See docs/fluxer.rst for the full guide.

What's new in this fork

This fork is based on Red 3.5 (V3/develop) and includes many changes that aren't part of an official Red release yet:

Platform and requirements

  • Fluxer support, including self-hosted instances
  • Python 3.11 - 3.14 (3.8 - 3.10 dropped), static package metadata, requirements for all supported platforms and Python versions; Python requirements of Red itself are defined through special packages, so redbot-update can check them
  • Support for Debian 13 and RHEL 10, built-in cipher server for YouTube playback
  • Installation with Docker Compose (optionally with PostgreSQL)

Core

  • [p]set ownernotifications updates <all|skip|off> - turn off or skip update notifications
  • [p]set status persistent - keep the bot's status after a restart
  • [p]set bot serveravatar / serverbanner / serverbio - per-server bot profile
  • [p]set logger <level> [logger] - change logger levels at runtime (e.g. temporary debug logs)
  • [p]command serverdisabledmsg - separate response for commands disabled in a server
  • Privileged intents configurable per instance (redbot --edit), cogs can declare required and optional privileged intents in info.json; [p]userinfo works without privileged intents
  • Toggles in core commands were changed to setters, local allow-/blocklists are mutually exclusive
  • Messages of failed checks are shown for commands using check_any()
  • Clear error messages for wrong PostgreSQL credentials, help for cogs without commands, "Manage Permissions" naming when Manage Roles is denied in a channel

Downloader

  • Repo names are case-insensitive, [p]repo rename, confirmation before updating cogs
  • [p]cog update continues when a requirement fails to install, skips repos deleted during the update and works after force pushes to a cog repo
  • Installed cogs without a repo are listed in [p]cog update / [p]cog checkforupdates
  • max_python_version key in info.json
  • [p]findcog supports slash commands, context menus, cogs and cog packages
  • The shared libraries feature was removed; cogs are loaded from the redbot.ext_cogs package

Cogs

  • Audio: [p]voteskip, [p]audioset dcdelay, [p]audioset vcstatus, skipping with an empty queue, Discord attachments with [p]audioset restrict, correct order for local folders, better autoplay handling and Lavalink shutdown on Windows
  • Mutes: updating the duration of existing mutes, new channels get the mute overwrites, reasons are no longer mistaken for additional users
  • ModLog: [p]deletecase; Mod/Mutes/Warnings support extra fields in cases
  • Permissions: readable errors for invalid YAML files, comments describing the IDs in [p]permissions acl get* files
  • CustomCom: [p]customcom mentions to allow @everyone/@here/role mentions
  • Streams: game allow list, custom messages per streamer, Twitch Teams, better error handling
  • Bank/Economy: payday and bank events, discord.Object support
  • Alias: aliases are stored in Config custom groups instead of one big list

Developer API

  • Context.maybe_send_embed(..., title=...), pagify(..., split_after=True), modlog.delete_case(), translated answers in MessagePredicate.yes_or_no(), app command check decorators

See the commit history for the complete list of changes.

Development

The CI runs on Forgejo Actions (.forgejo/workflows): tests with tox for Python 3.11 - 3.14 (including PostgreSQL), style checks (black), docs build, security analysis (bandit), auto labeling of issues and pull requests, requirements compilation and the release workflows. Jobs run on self-hosted runners with the docker label.

To run the checks locally:

python -m pip install -U tox
tox -e py311,style,docs

Plugins

Red is fully modular, allowing you to load and unload plugins of your choice, and install 3rd party plugins directly from Discord! A few examples are:

  • Cleverbot integration (talk to Red and she talks back)
  • Ban sync
  • Welcome messages
  • Casino
  • Reaction roles
  • Slow Mode
  • AniList
  • And much, much more!

Feel free to take a peek at a list of available 3rd party cogs!

Join the community!

Red is in continuous development, and it’s supported by an active community which produces new content (cogs/plugins) for everyone to enjoy. New features are constantly added. If you can’t find the cog you’re looking for, consult our guide on building your own cogs!

Join us on our Official Discord Server!

License

Released under the GNU GPL v3 license.

Red is named after the main character of "Transistor", a video game by Super Giant Games.

Artwork created by Sinlaire on Deviant Art for the Red Discord Bot Project.

This project vendors discord.ext.menus package made by Danny Y. (Rapptz) which is distributed under MIT License. A copy of this license can be found in the discord-ext-menus.LICENSE file in the redbot/vendored folder of this repository.