- Python 98.8%
- PLpgSQL 0.8%
- Shell 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EihVZbZM2h45ekzVffj9t3 |
||
| .forgejo | ||
| .github | ||
| docker | ||
| docs | ||
| redbot | ||
| requirements | ||
| schema | ||
| tests | ||
| tools | ||
| .bandit.yml | ||
| .cherry_picker.toml | ||
| .codeclimate.yml | ||
| .dockerignore | ||
| .env.example | ||
| .git-blame-ignore-revs | ||
| .git_archive_info.txt | ||
| .gitattributes | ||
| .gitignore | ||
| .pylintrc | ||
| .readthedocs.yml | ||
| CHANGES.rst | ||
| CONTRIBUTING.md | ||
| crowdin.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| make.bat | ||
| make.ps1 | ||
| Makefile | ||
| MANIFEST.in | ||
| pyproject.toml | ||
| README.md | ||
| SECURITY.md | ||
| setup.py | ||
| tox.ini | ||
Red Discord Bot
Music, Moderation, Trivia, Stream Alerts and Fully Modular - for Discord and Fluxer.
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:
- Windows
- MacOS
- Most major linux distributions (including Debian 13 and RHEL 10)
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-updatecan 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 ininfo.json;[p]userinfoworks 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 updatecontinues 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_versionkey ininfo.json[p]findcogsupports slash commands, context menus, cogs and cog packages- The shared libraries feature was removed; cogs are loaded from the
redbot.ext_cogspackage
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 mentionsto 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.Objectsupport - 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 inMessagePredicate.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.