![]() |
|---|
Handle your discord server. Effortlessly.
Carbon is a modern, high-performance Discord management bot designed to streamline moderation. Built with discord.py, SQLAlchemy, and Redis, it offers a robust and scalable solution for communities of all sizes.
- Kick: Kick someone from the server.
- Ban: Ban someone from the server.
- Unban: Unban someone from the server.
- Timeout: Timeout someone in the server.
- Warn: Warn a member of the server.
- Purge: Delete messages in bulk.
- Python: 3.12 or higher
- Poetry: For dependency management
- PostgreSQL: For persistent data storage
- Redis: For caching and performance
- Discord Bot: From the Discord Developer Portal
-
Clone the Repository:
git clone https://github.com/sudoscrawl/carbon.git cd carbon -
Install Dependencies:
poetry install
-
Configure Environment Variables: Copy the
.env.examplefile and fill in your details:cp .env.example .env
Edit
.envand provide yourBOT_TOKEN,DB_URL, and Redis credentials. -
Run Migrations (if applicable):
poetry run alembic upgrade head
-
Start the Bot:
poetry run python main.py
You can also run Carbon using Docker Compose:
docker-compose up -d- Language: Python 3.12
- Library: discord.py
- Database: PostgreSQL with SQLAlchemy
- Caching: Redis
- Logging: structlog
- i18n: Babel
This project is licensed under the GPL-3.0 License.
