A small example package
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]
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
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
File details
Details for the file operator_precedence_high_roller-1.1.4.tar.gz
.
File metadata
- Download URL: operator_precedence_high_roller-1.1.4.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b85b59b01ec57f5e54420452fc350abca6e0260ea9bff3b97ba1fb9607d12c8b |
|
MD5 | ac36f98823efe22a95d979e26d5419a2 |
|
BLAKE2b-256 | d4e080db9fb8c8246b1b7856857bad10299339b77bd486e7594f63c2a7f59f9c |
File details
Details for the file operator_precedence_high_roller-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: operator_precedence_high_roller-1.1.4-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cd7130f168b1160b49c9bd7fdffb37d9e3e64b1c57a03b2375dbdacc8ffe73a |
|
MD5 | ba4cae88665b013ff58cfb9d7f23352f |
|
BLAKE2b-256 | 02000be8fe2db2508fd557fb380671a5aca08064d2257b5bc04a4a1047f8f73d |