JSPM

nodebb-plugin-dice

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 3
    • Score
      100M100P100Q25235F
    • License MIT

    A NodeBB plugin to rolls dice

    Package Exports

    • nodebb-plugin-dice

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nodebb-plugin-dice) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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.

    Screen Shot 2019-10-27 at 6 11 33 PM

    Screen Shot 2019-10-27 at 6 16 10 PM

    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.