Code Monkey home page Code Monkey logo

mod_muc_rpg's Introduction

Prosody RPG module

This is a module for Prosody 0.9 (maybe lower, but only maybe) that adds /roll command to every MUC.

The syntax is this:

/roll <times>d<sides>+<bonus>
/roll <times>d<sides>-<bonus>

The <times> bit is optional (default 1), the d letter is optional too if times = 1 and bonus = 0.

Example:

/roll 1d4
/roll 2d5-2
/roll d20+3
/roll 20

Installation

This module uses Mersenne-Twister random-number library for better random number generation.

You can get the newest library version here.

The library uses BSD license so it's included here (for Lua 5.2). Just compile the random.so and put it in /usr/lib/prosody or /usr/lib/lua/5.1 directory.

Then, drop the module to Prosody dir (usually /usr/lib/prosody/modules) and turn it on in your config.

mod_muc_rpg's People

Contributors

oreolek avatar

Stargazers

Игорь avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.