-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to specify a source range
Now a range can be specified to pick random numbers from: `!roll 1d{0,9}`, `!roll 2d{3,7}`, `!roll 3d{-5,-1}`.
- Loading branch information
1 parent
30952b9
commit 99871c8
Showing
3 changed files
with
52 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
# dice | ||
|
||
A [maubot](https://github.com/maubot/maubot) that rolls dice. Has built-in calculator. | ||
|
||
## Usage | ||
The base command is `!roll`. To roll dice, pass `XdY` as an argument, where `X` | ||
is the number of dice (optional) and `Y` is the number of sides in each dice. | ||
|
||
The base command is `!roll`. | ||
|
||
To roll a dice, pass `XdY` as an argument, where `X` is the number of dice | ||
(optional) and `Y` is the number of sides in each dice. `Y` can be passed as a | ||
specific range as well (for example: `{0,9}`, `{-5,-1}`). | ||
|
||
Most Python math and bitwise operators and basic `math` module functions are | ||
also supported, which means you can roll different kinds of dice and combine | ||
the results however you like. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
maubot: 0.1.0 | ||
id: xyz.maubot.dice | ||
version: 1.1.0 | ||
version: 1.2.0 | ||
license: AGPL-3.0-or-later | ||
modules: | ||
- dice | ||
|