dice command parser/roller discord bot
Project description
Operator Precedence High Roller Package
This is a package for a discord bot. I call it High Roller as a play on its original use for TTRPG rolling, as well as a joking reference to gambling. Also recently I added a !gamble command to make the joke more literal.
How to run - Enter the main directory in terminal. python -m operator_precedence_high_roller.high_roller
Commands -
! is the general character to put before a discord message to be read by the bot.
Command => '!' [EXPR]
Command => '!gamble'
Command => [BET]
Command => '!' [RECALL]
EXPR => [EXPR] '+' [EXPR]
EXPR => [EXPR] '-' [EXPR]
EXPR => [EXPR] '*' [EXPR]
EXPR => [EXPR] '/' [EXPR]
EXPR => '(' [EXPR] ')'
EXPR => [NUM]
EXPR => [ROLL]
ROLL => 'd' [NUM]
ROLL => 'e' [NUM]
ROLL => [NUM] 'd' [NUM]
ROLL => [NUM] 'e' [NUM]
NUM => [0..9]+
BET => 'odds'
BET => 'evens'
RECALL => 'h'
RECALL => 'h' '(' [NUM] ',' [ROLL] ')'
Version history -
1.1.2 - everything except RECALL commands works
1.1.3 - now everything works like it should
1.1.4 - small bug-fix
1.2.0 - big update, all unit tests done, general functional changes
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file operator_precedence_high_roller-1.2.0.tar.gz.
File metadata
- Download URL: operator_precedence_high_roller-1.2.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
979efa0142af753e0aadb6d1a70d916eb946bee3cc6ebdb91e5e0bee5d88497c
|
|
| MD5 |
cbf9d72d5f5c4bdfb111f8537dbe7ad8
|
|
| BLAKE2b-256 |
43e2a2347eb424a115c3285b3f99efe83ff86cd2fc8f8e485f2365e7227c4be6
|
File details
Details for the file operator_precedence_high_roller-1.2.0-py3-none-any.whl.
File metadata
- Download URL: operator_precedence_high_roller-1.2.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b65d2f3082d4de5c988c2b988d42c4f3f4261f616cce994cd03476965bf84eab
|
|
| MD5 |
b14cb6b2238820f5ca4b6bb9666a7d08
|
|
| BLAKE2b-256 |
db162b50c76422af25776d377e282588cf0ededc8f61930a112b6089625d7b18
|