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.2

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.2
File Size Uploaded Provenance Actions
rubydc-0.1.2.tar.gz 12.4 kB Without provenance Details for rubydc-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 27.3 kB

Release files / rubydc-0.1.2.tar.gz

Download URL rubydc-0.1.2.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
75d3d8db904efbe8a053ef410410bc5f63bc2556afdebcf6d5de181a0cf896c3
BLAKE2b-256 checksum
How to use checksums
59be112dab08fa8fce6239d76644fa0e2d22c5180c090c6726bc10a45d5ed279
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.2-py3-none-any.whl

Download URL rubydc-0.1.2-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45214f45f70231df6b291e3b9784b85c8fb90a813928ec7fb856309dec5a1238
BLAKE2b-256 checksum
How to use checksums
dea9a96d16996b662f28a66b7fb7c3b271c88603edb51809139dd8ce6c23ca19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.2

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