2017 © Pedro Peláez
 

library phergie-fortune

Phergie plugin for displaying a fortune in channel

image

sitedyno/phergie-fortune

Phergie plugin for displaying a fortune in channel

  • Sunday, May 7, 2017
  • by sitedyno
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

sitedyno/phergie-fortune

Phergie plugin for displaying a fortune in channel., (*1)

:warning: This plugin makes system calls! It should be fine unless misconfigured. You have been warned. :warning:, (*2)

This plugin assumes you have installed fortune on your *nix like system. For more detailed information on databases see man fortune., (*3)

Build Status codecov, (*4)

Install

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

composer require sitedyno/phergie-fortune

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

Provided Commands

Command Parameters Description
!fortune none Displays a random fortune in channel

Configuration

return [
    'plugins' => [
        // dependency
        new \Phergie\Irc\Plugin\React\Command\Plugin,

        // configuration, all is optional
        new \Sitedyno\PhergieFortune\Plugin([
            // The path to the fortune binary. Defaults to '/usr/games/fortune'.
            'binary-path' => '/usr/games/fortune',
            // List of databases to use. Defaults to 'fortunes'. See `man fortune` for possible values.
            'databases' => 'fortune',
            // Use only short fortunes. Defaults to true.
            'short' => true
        ])
    ]
];

Tests

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

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

License

Released under the MIT License. See LICENSE.md., (*8)

The Versions

07/05 2017

dev-master

9999999-dev

Phergie plugin for displaying a fortune in channel

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin bot irc phergie

07/05 2017