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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sprocket-fizzlebang-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92f9971b215096c319e1904a08ecd69396fd7b7668d40b02344a7a82adeb566b |
|
MD5 | 2f2333de54e0b8b52113051443cbdc63 |
|
BLAKE2b-256 | d592eac1f9144094d21ced68202f924dbd4d65c5c78383c4ac229f7373ff8acf |
Close
Hashes for sprocket_fizzlebang-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a7618947d311d7e6cc42df78def1ec0889d11b43ed6effc98362f5b5c9b1bc0 |
|
MD5 | e993cc949953acf6b46619e612ad0745 |
|
BLAKE2b-256 | d2170e9ab96f9af192da0164dc7d3ff2579268249da2c2f53c58e21cce66cba6 |