Skip to main content

Tools to roll some virtual dice

Project description

Dungeondice-matrix

This is a quick re-make of my discord dice-rolling bot. For now quite barebones. It rolls dice. The code has been hastily copy/pasted. Might make it prettier later.

Features

  • Roll dice in a matrix channel
  • 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]
---------------------------------

Usage

Directly from the repo:

MATRIX_HOST="https://your.host" BOT_USERNAME="@diceparser:your.host" BOT_PASSWORD="secret" uv run main.py

Installation using pip:

pip install --upgrade dungeondice-matrix
MATRIX_HOST="https://your.host" BOT_USERNAME="@diceparser:your.host" BOT_PASSWORD="secret" dungeondice-matrix

Docker:

$ cat .env
MATRIX_HOST=https://<host>
BOT_USERNAME=@<bot_username>:<host>
BOT_PASSWORD=<your password>

$ docker run --env-file=.env ghcr.io/jwizzle/dungeondice-matrix:latest

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_matrix-1.2.0.tar.gz (21.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_matrix-1.2.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file dungeondice_matrix-1.2.0.tar.gz.

File metadata

  • Download URL: dungeondice_matrix-1.2.0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dungeondice_matrix-1.2.0.tar.gz
Algorithm Hash digest
SHA256 16e882eaeac02822b4d20ddb578e66101ca2859dbef40461ff7df2ab871be4ad
MD5 14c52e5828dda79d117676e9c8d20c07
BLAKE2b-256 6c2451a9fd6eed9adb89d233f552248f2e09b66c79167d573f90e9a3207ad6ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for dungeondice_matrix-1.2.0.tar.gz:

Publisher: python-publish.yml on jwizzle/dungeondice-matrix

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_matrix-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dungeondice_matrix-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25533b751240b84bccea2b94c33b64ce3b8a4e7ad68699b958d1927c0b565173
MD5 c174041e5b6bf299a93c2bc4caa3c8a3
BLAKE2b-256 ecbdddc274d721086d1f72cf4260e5a7b10455f89cb136b0f22daa39ce1c11e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for dungeondice_matrix-1.2.0-py3-none-any.whl:

Publisher: python-publish.yml on jwizzle/dungeondice-matrix

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