https://github.com/nodebb-community/nodebb-plugin-dice
A NodeBB dice roller plugin based on rpg-dice-roller
https://github.com/nodebb-community/nodebb-plugin-dice
Last synced: 10 months ago
JSON representation
A NodeBB dice roller plugin based on rpg-dice-roller
- Host: GitHub
- URL: https://github.com/nodebb-community/nodebb-plugin-dice
- Owner: NodeBB-Community
- License: mit
- Created: 2019-10-27T11:40:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T03:15:29.000Z (over 2 years ago)
- Last Synced: 2025-01-26T18:17:17.564Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodebb-plugin-dice
A NodeBB dice roller plugin based on https://github.com/GreenImp/rpg-dice-roller
# Usage
```
npm install nodebb-plugin-dice
```
* Or install via ACP > Extend > Plugins
* then login to your NodeBB ACP > Extend > Plugins to activate
* Then restart your instance
* Then visit `/admin/plugins/dice` or Plugins > Dice, delegate a user to be the `bot` that replies to the users.
* Then when creating a topic or a post type a `/roll` command
```
/roll 2d6!>4
```
You can submit multiple rolls, but they have to be each on a separate line, everything else will be ignored.


### Notes
Keep in the mind the following points:
* if you see an error `[[error:no-privileges]]` in the logs, that means that the delegated bot does not have write access to that specific category/topic, you need to make sure the bot can reply everywhere.
* if you see `[[error:too-many-posts-newbie...]]` in the logs, that means that the bot is newly created.