Skip to main content

Another dice bot for discord.

Project description

zardoz

https://img.shields.io/pypi/v/zardoz.svg https://img.shields.io/travis/camillescott/zardoz.svg Documentation Status

Another dice bot for discord.

Features

  • Complex roll options provided via python-dice

  • Multiple game types to provide fast default dice rolls (ie, 1d100 represented by r in Rogue Trader mode)

  • Reports degrees of success or failure when in RT mode, or success or failure otherwise, when using comparison operators

  • Stores roll history for server

Examples

For a basic roll, /z 1d100:

Request:
1d100
Rolled out:
{1d100 ⤳ 53}
Result:
[53]

Multiple dice, /z 3d100:

Request:
3d100
Rolled out:
{3d100 ⤳ [27, 83, 73]}
Result:
[27, 83, 73]

Distributed addition and subtraction, /z 3d100 + 10:

Request:
3d100 + 10
Rolled out:
{3d100 ⤳ [47, 30, 19]} + 10
Result:
[57, 40, 29]

Comparisons:

Request:
4d6 <= 4
Rolled out:
{4d6 ⤳ [6, 2, 4, 2]} <= 4
Result:
6 ⤳ failed by 2
2 ⤳ succeeded by 2
4 ⤳ succeeded by 0
2 ⤳ succeeded by 2

DoF/Dos, /z 3d100 <= 50:

Request:
3d100 <= 50
Rolled out:
{3d100 ⤳ [57, 11, 88]} <= 50
Result:
57 ⤳ failure
11 ⤳ 3 DoS
88 ⤳ 3 DoF

Order of operations, /z 3d100 <= 50 + 5:

Request:
3d100 <= 50 + 5
Rolled out:
{3d100 ⤳ [75, 87, 55]} <= 50 + 5
Result:
75 ⤳ 2 DoF
87 ⤳ 3 DoF
55 ⤳ success

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2021-02-13)

  • First release on PyPI.

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

zardoz-0.9.2.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

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

zardoz-0.9.2-py2.py3-none-any.whl (59.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zardoz-0.9.2.tar.gz.

File metadata

  • Download URL: zardoz-0.9.2.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

File hashes

Hashes for zardoz-0.9.2.tar.gz
Algorithm Hash digest
SHA256 d26049bfbc42f33f1974bcc498a940d563466d4a9a5a9c16b28f953e210ac427
MD5 5468e478664d890b6c22a512f066ac34
BLAKE2b-256 47e9a7a7160f3048e0d8452e10cd33315b39bd05207b0c1caa9b9f468d8df9de

See more details on using hashes here.

File details

Details for the file zardoz-0.9.2-py2.py3-none-any.whl.

File metadata

  • Download URL: zardoz-0.9.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 59.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

File hashes

Hashes for zardoz-0.9.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ab97bd7a6ede393f780bddeb4aa559644b58c31d2c5ba6964b73bc1b9ff10774
MD5 bd5391457f7347b5e6590c231fb0e442
BLAKE2b-256 e72f13d2b1d53502b8d22c7a6392ce4cb5122299eb1d34b1c417d18094bb573b

See more details on using hashes here.

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