Skip to main content

No project description provided

Project description

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

Project details


Download files

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

Files for sprocket-fizzlebang, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size sprocket_fizzlebang-0.3.0-py3-none-any.whl (8.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sprocket-fizzlebang-0.3.0.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page