Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opsdroid/skill-random
💬 A skill for opsdroid to perform random events like flipping a coin
https://github.com/opsdroid/skill-random
Last synced: about 1 month ago
JSON representation
💬 A skill for opsdroid to perform random events like flipping a coin
- Host: GitHub
- URL: https://github.com/opsdroid/skill-random
- Owner: opsdroid
- License: apache-2.0
- Created: 2018-03-20T13:17:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-01T14:43:47.000Z (almost 4 years ago)
- Last Synced: 2024-10-30T00:00:52.478Z (about 2 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opsdroid skill random
A skill for [opsdroid](https://github.com/opsdroid/opsdroid) to perform random events like flipping a coin or rolling a dice.
## Requirements
None.
## Configuration
None.
## Usage
#### `flip a coin`
Flips a coin.
> user: flip a coin
>
> opsdroid: It landed on heads#### `roll a die`
Rolls a die.
> user: roll a die
>
> opsdroid: You rolled a 4#### `roll a d20`
Does full DnD-style dice rolls:
> user: roll 3d8+2
>
> opsdroid: You rolled 3d8 (4, 2, 2) + 2 = 10Even supports "keep highest" (or lowest), minimums, and re-rolls (see [d20](https://github.com/avrae/d20)).
> user: roll 3d20kh1
>
> opsdroid: You rolled 3d20kh1 (15, 14, 11) = 15### Magic 8 Ball
Picks a random clairvoyant style answer:
> user: magic 8 ball, should I go to bed now?
>
> opsdroid: Without a doubt