2017 © Pedro Peláez
 

library phergie-irc-plugin-react-dice

Phergie plugin for returning randomly generated numbers in response to dice rolling requests

image

chrismou/phergie-irc-plugin-react-dice

Phergie plugin for returning randomly generated numbers in response to dice rolling requests

  • Thursday, March 24, 2016
  • by chrismou
  • Repository
  • 1 Watchers
  • 0 Stars
  • 209 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

Dice rolling plugin for Phergie

Phergie plugin for returning randomly generated numbers in response to dice rolling requests., (*1)

Build Status Test Coverage Code Climate Buy me a beer, (*2)

About

This plugin returns the total of a user specified number of dice rolls., (*3)

By default, the plugin responds to "dice " (number of sides is optional, defaults to 6); i.e. dice 5 returns the total of five 6-sided die rolls., (*4)

Install

The recommended method of installation is through composer., (*5)

composer require chrismou/phergie-irc-plugin-react-dice

See Phergie documentation for more information on installing and enabling plugins., (*6)

Configuration

To activate the plugin using the default settings, add the following to your phergie config:, (*7)

new \Chrismou\Phergie\Plugin\Dice\Plugin

You can configure some of the settings as follows:, (*8)

new \Chrismou\Phergie\Plugin\Dice\Plugin(
    "defaultSides": 6,      // The number of sides on the dice if excluded from the command
    "maxRolls": 50,         // Maximum number of dice
    "maxSides": 1000,       // Maximum number of sides per dice
    "showSums": true        // Show the sums in the response
)

Tests

To run the unit test suite:, (*9)

curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

License

Released under the BSD License. See LICENSE., (*10)

The Versions

12/05 2015

1.0.2

1.0.2.0 http://github.com/chrismou/phergie-irc-plugin-react-dice

Phergie plugin for returning randomly generated numbers in response to dice rolling requests

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

12/01 2015

1.0.1

1.0.1.0 http://github.com/chrismou/phergie-irc-plugin-react-dice

Phergie plugin for returning randomly generated numbers in response to dice rolling requests

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

12/01 2015

1.0.0

1.0.0.0 http://github.com/chrismou/phergie-irc-plugin-react-dice

Phergie plugin for returning randomly generated numbers in response to dice rolling requests

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie