Just a small CLI app I wrote in Go for fun, for my own use.
Caution
This is the first thing I wrote in Go, I know the code is trash.
It uses Random.org, so if you wanna run it yourself, you need to create a file that's called apikey with, well, your Random.org API key and put it in the root/next to the binary.
./build.shImportant
Don't forget your apikey file
./dice-rollerndp+q
e.g. d10, 2d20, 2d12-5, or 10d6a3 etc
| option | |
|---|---|
n |
Number of dice (optional) |
p |
Type of dice |
+ |
The type of modifier |
q |
The modifier number |
| modifier | |
|---|---|
+ |
Add a constant number to roll |
- |
Subtract a constant number from roll |
a |
Show all dice which rolled the modifier number and above |
b |
Show all dice which rolled the modifier number and below |
| command | |
|---|---|
r or [enter] |
for repeat last |
r[n] |
where n is a specific roll to repeat |
q |
to quit |