Giter Club home page Giter Club logo

phergie-irc-bot-react's Introduction

phergie/phergie-irc-bot-react

A PHP-based IRC bot built on React.

Install

The recommended method of installation is through composer.

{
    "minimum-stability": "dev",
    "require": {
        "phergie/phergie-irc-bot-react": "dev-master"
    }
}

Design goals

  • Easy installation with minimal configuration
  • Low-friction plugin development
  • Informative logging of events for debugging
  • Use of third-party libraries where feasible
  • Simple easy-to-understand API

Usage

To run from a project using this repository via composer, which is the recommended approach for end-users and plugin developers:

./vendor/bin/phergie

To run from a clone of this repository, which is only recommended for core developers:

./bin/phergie

In both cases, an optional list of configuration file paths can be specified as command line arguments. If none are, config.php in the current working directory will be assumed by default.

Configuration

Configuration is stored in PHP files that return associative arrays. These files contain settings for IRC server connections and plugins. See config.sample.php for a example.

Installing Plugins

The bot provides enough functionality to connect to an IRC server and listen for events, but what really makes it useful to end-users is functionality provided through plugins.

Like the bot itself, plugins are installed via composer. Add any plugins you want to install to the require section of your composer.json file and run composer install or composer update as appropriate.

In order for the bot to actually use an installed plugin, it must be enabled and configured in the bot's configuration file. See config.sample.php for an example.

To get an idea of what plugins are available, check out the Plugins page in this repository's wiki.

Developing Plugins

More to come...

Tests

To run the unit test suite:

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

License

Released under the BSD License. See LICENSE.

Community

Check out #phergie on irc.freenode.net.

phergie-irc-bot-react's People

Contributors

elazar avatar

Watchers

 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.