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 rubydc

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

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.3
File Size Uploaded Provenance Actions
rubydc-0.1.3.tar.gz 12.8 kB Without provenance Details for rubydc-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 28.3 kB

Release files / rubydc-0.1.3.tar.gz

Download URL rubydc-0.1.3.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a43b0f85f9c8b6ec3507d6032ba95546e63d6f736b595f72f9eb87b1ca890db4
BLAKE2b-256 checksum
How to use checksums
387edb8d76101ea84d7f27669e391662b70ba1da4119007aacb80f01ab510f92
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.3-py3-none-any.whl

Download URL rubydc-0.1.3-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b84ad6e9dcc6d7c7271c593b2ff07252227ac3679bafaee57c561f1e46a11fce
BLAKE2b-256 checksum
How to use checksums
a69d29e92be1d515b3ddb94193d58063fdfedb66993b5b99d86c0cf3e6b20999
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.3

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