An Errbot plugin for coin flips, die rolls and other randomization tasks.
No external libraries besides errbot itself is required.
Errbot admins can install this plugin for an Errbot using the !repos install command:
!repos install https://github.com/torgeirl/random-errbot.git
Run !help Plugins to get instructions on !repo uninstall, !repo update and other plugin commands.
$ !coinflip
TAILS!
$ !eightball
Yes definitely.
$ !roll
Rolled a 6-sided dice, and the result is...
... 4!
$ !roll 2d20
Rolled 2 20-sided dice, and the result is...
... 1 19!
$ !wheel
Yes
$ !wheel Flying "First strike" Trample
First strike
See the LICENSE file for license rights and limitations (MIT).