asdfx/phergie-irc-plugin-react-trivia

A trivia bot for Phergie IRC Bot

1.0.5 2019-03-25 11:30 UTC

This package is auto-updated.

Last update: 2024-04-25 22:52:05 UTC


README

Phergie plugin for playing a trivia game.

About

This plugin provides a really simple Trivia game, the bot asks a question, if you answer it correctly, you get points!

Usage

Start the game

.start

Stop the game

.stop

Get your current score

.score

Install

The recommended method of installation is through composer.

composer require asdfx/phergie-irc-plugin-react-trivia

See Phergie documentation for more information on installing and enabling plugins.

Configuration

This plugin requires the Command plugin to recognise commands.

If you're new to Phergie or Phergie plugins, see the Phergie setup instructions for more information. Otherwise, add the following references to your config file:

return [
    // ...
    'plugins' => [
        new \Phergie\Irc\Plugin\React\Command\Plugin,   // dependency
	new \Asdfx\Phergie\Plugin\Trivia\Plugin(['channel' => '#yourChannel']),
    ]
]

License

Released under the MIT License. See LICENSE.