Skip to main content

Tools to roll some virtual dice

Project description

Upload Python Package

Dungeondice

This is a discord bot that aims to become a feature-rich yet easy to use option for rolling dice for TTRPG's online. I aim to keep the logic of the bot detached from discord integration. So the python package is re-usable in other places.

Features

  • Roll dice in a discord channel
  • Roll privately, either telling others you rolled or not. To simulate the feeling of hearing your DM's dice go behind a screen
  • Supports both discord slashcommands for features like ephemeral messages, or regular !commands that feel more responsive
  • Roll multiple sets in one go 2x2d20
  • Add hints to your dice d10(piercing)+d8(poison)
  • Add hints to your complete roll d8(poison) For damage
  • Create complex rolls like 2x2d20(poison)+d8(piercing)-4 to get two total results
---------------------------------
2d20(poison)+d8(piercing)-4
Total: 35
Details: [[16, 17]33poison, [6]6piercing, [4]4]
---------------------------------
---------------------------------
2d20(poison)+d8(piercing)-4
Total: 19
Details: [[10, 11]21poison, [2]2piercing, [4]4]
---------------------------------

Installation

$ pip install dungeondice
$ DISCORD_TOKEN="$TOKEN" dungeondice

Usage

Run the bot, see the .help command for more details.

Roadmap/TODO

  • Start using discord views for nicer layout?
  • Templating of rolls per player/discord channel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dungeondice-1.3.0.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dungeondice-1.3.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file dungeondice-1.3.0.tar.gz.

File metadata

  • Download URL: dungeondice-1.3.0.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dungeondice-1.3.0.tar.gz
Algorithm Hash digest
SHA256 95a1fc123eba4be3b8fcc8adc5923f13ca2bd6d7d3b4b2edaf4bd2b42465f59c
MD5 8ce88550a4103088d126bac1e324738b
BLAKE2b-256 65929ecc03d603454a5d7d0f054424ad8990a81af710a1e799a6d8923865e61c

See more details on using hashes here.

Provenance

The following attestation bundles were made for dungeondice-1.3.0.tar.gz:

Publisher: python-publish.yml on jwizzle/dungeondice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dungeondice-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: dungeondice-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dungeondice-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f738a8b79d73cf31d1ebfae9c98e4f92c06c667ff987fb9a8bf111b4c76d11a
MD5 ecee1d1efc4b48570b83afdd35a03294
BLAKE2b-256 680332a6771db1ef88b09160c1edccda0ce913d81d3964f3a6cdaea244d7ceb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dungeondice-1.3.0-py3-none-any.whl:

Publisher: python-publish.yml on jwizzle/dungeondice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page