phergie / phergie-irc-plugin-react-formstackbot
Phergie IRC bot plugin responding to Who's your *? phrases
dev-master
2014-11-24 19:35 UTC
Requires
- php: >=5.4.0
- phergie/phergie-irc-bot-react: dev-master
Requires (Dev)
- codeclimate/php-test-reporter: 0.1.*@dev
- phake/phake: 1.0.*
- phpunit/phpunit: 4.0.*
- satooshi/php-coveralls: v0.6.1
This package is not auto-updated.
Last update: 2024-11-19 05:09:22 UTC
README
A plugin for Phergie to react to users who privately message the bot and ask them to sign up and submit data to formstack.com api"
Install
The recommended method of installation is through composer.
{ "require": { "phergie/phergie-irc-plugin-react-formstackbot": "dev-master" } }
See Phergie documentation for more information on installing plugins.
Configuration
new \bkmorse\Phergie\Irc\Plugin\React\FormStackBot\Plugin(array( 'prefix' => '!', // string denoting the start of a command 'pattern' => '/^!/', // PCRE regular expression denoting the presence of a 'nick' => true, // true to match common ways of addressing the bot by its // connection nick 'formstack_form_id' => '', // id of form in formstack.com dashboard 'formstack_token' => '', // token from when you create an application on formstack.com )),
Usage
This plugin monitors PRIVMSG
events attempting."
Tests
To run the unit test suite:
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit