Skip to main content

Ruby

A small framework on top of discord.py for single-server Discord bots. You write the cogs, and Ruby handles the config, database, error messages, logging and more.

Docs: https://ruby.toaster.quest

Features

  • Drop-in cogs: put a .py file in cogs/ and it loads at startup. A cog that fails to load is logged and skipped, not fatal.
  • One YAML file: name, prefix, owners, statuses, channels and per-cog settings live in config.yaml, validated with pydantic.
  • Rewordable messages: every message comes from a string table, so a server can reword any of them in its config.
  • Friendly errors: cooldowns, missing permissions, bad arguments and crashes get a sensible reply, for prefix and slash commands.
  • MongoDB built in: an async PyMongo database named after your bot is ready as bot.db.
  • Logs where you look: a rotating bot.log, plus coloured embeds in a log channel on your server.

Requirements

  • Python 3.14 or newer
  • uv
  • A MongoDB server (recommended; some cogs assume it)
  • A bot application from the Discord Developer Portal, with the Message Content and Server Members intents enabled

Quick start

uvx rubydc init ruby-bot
cd ruby-bot
uv run ruby

rubydc init creates the project (a cogs/ folder, .env and config.yaml) and asks for your bot token and settings as it goes.

Run Ruby from inside the project folder: it reads config.yaml, .env and cogs/ from the current directory.

ruby-bot/
├── pyproject.toml
├── .env          # secrets: token and database
├── config.yaml   # everything else
└── cogs/         # your features, one file each

Never commit .env.

Documentation

Getting started, configuration, errors and deploying are covered at https://ruby.toaster.quest.

License

See the LICENCE file.

Metadata

Release files for rubydc 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rubydc 0.1.1
File Size Uploaded Provenance Actions
rubydc-0.1.1.tar.gz 11.4 kB Without provenance Details for rubydc-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rubydc 0.1.1
File Interpreter ABI Platform Actions
rubydc-0.1.1-py3-none-any.whl Python 3 none any Details for rubydc-0.1.1-py3-none-any.whl

Total release size: 25.3 kB

Release files / rubydc-0.1.1.tar.gz

Download URL rubydc-0.1.1.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b1ba6def5db8dfa20d234c3fd7c8f4371b2df168301c4a516a07602b18f05d54
BLAKE2b-256 checksum
How to use checksums
316e82458f325e709c8903fec31a89cb58949c441cb310e12d0f75a8ffaf19dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ultramarine Linux","version":"44","id":"flyingfish","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / rubydc-0.1.1-py3-none-any.whl

Download URL rubydc-0.1.1-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ccf147efec92649727c81802fdaff5bf007b563c34ccd3da3d89995be63c8e7
BLAKE2b-256 checksum
How to use checksums
349cf2630303a7f8b9dccab3cfad4898fbf74e1f761f0739937236e4e5369302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ultramarine Linux","version":"44","id":"flyingfish","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for rubydc 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page