Skip to main content

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

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)

Source distribution for sprocket-fizzlebang 0.3.0
File Size Uploaded
sprocket-fizzlebang-0.3.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sprocket-fizzlebang 0.3.0
File Interpreter ABI Platform
sprocket_fizzlebang-0.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

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