Sprocket
version 0.3.0
Description
A simple discord bot for rolling dice.
Installation
pip install sprocket-fizzlebang
Config
Connecting
The environment variable DISCORD_BOT_SECRET must be set
to the value of your discord bot token.
Bash:
export DISCORD_BOT_SECRET=xyz
Or using .env:
DISCORD_BOT_SECRET=xyz
Then to start:
python -m sprocket
or simply
sprocket
Quotes
Sprocket will parse all *.txt files present in its <sprocket-root>/data/text directory.
The file will be split on each pair of consecutive newlines. So:
This is
some text
This is
some other text
Will be parsed as 2 mutliline quote strings.
Audio
Audio files placed in <sprocket-root>/data/audio will be made avaiable for playing
provide you have ffmpeg and opus installed.
Commands
!roll <expression>
!reroll
!reroll list
!reroll <selection>
!join - sprocket will join the voice channel you are currently connected to
!leave
!sounds - sprocket will private message a list of all audio files it can play
!play filename_without_extension
!pause
!stop
Examples
!roll 1d20 + 1d4 - 1
!roll 1d100 {2}
!roll 2d8 + 3 - 1d10
!reroll list
!reroll 2
Metadata
Release files for sprocket-fizzlebang 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sprocket-fizzlebang-0.3.0.tar.gz | 4.8 kB | Without provenance | Details for sprocket-fizzlebang-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sprocket_fizzlebang-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for sprocket_fizzlebang-0.3.0-py3-none-any.whl |
Total release size: 13.0 kB
Release files / sprocket-fizzlebang-0.3.0.tar.gz
| Download URL | sprocket-fizzlebang-0.3.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92f9971b215096c319e1904a08ecd69396fd7b7668d40b02344a7a82adeb566b
|
|
BLAKE2b-256 checksum How to use checksums |
d592eac1f9144094d21ced68202f924dbd4d65c5c78383c4ac229f7373ff8acf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
|
Release files / sprocket_fizzlebang-0.3.0-py3-none-any.whl
| Download URL | sprocket_fizzlebang-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a7618947d311d7e6cc42df78def1ec0889d11b43ed6effc98362f5b5c9b1bc0
|
|
BLAKE2b-256 checksum How to use checksums |
d2170e9ab96f9af192da0164dc7d3ff2579268249da2c2f53c58e21cce66cba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
|
Security for sprocket-fizzlebang 0.3.0
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.