Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Updated README configuration example
Browse files Browse the repository at this point in the history
  • Loading branch information
elazar committed Apr 24, 2015
1 parent ea485d8 commit 2c2871f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,20 @@ enabled in your Phergie configuration file to be available to this plugin.
## Configuration

```php
new \Phergie\Irc\Plugin\React\Quit\Plugin(array(

// Optional: sprintf-compatible template for the message sent when the bot
// quits; takes one parameter, a string containing the nick of the user who
// initiated the command to quit
'message' => 'because %s said so',

))
return array(
'plugins' = array(
new \Phergie\Irc\Plugin\React\Command\Plugin, // dependency

new \Phergie\Irc\Plugin\React\Quit\Plugin(array(

// Optional: sprintf-compatible template for the message sent when the bot
// quits; takes one parameter, a string containing the nick of the user who
// initiated the command to quit
'message' => 'because %s said so',

)),
)
);
```

## Tests
Expand Down

0 comments on commit 2c2871f

Please sign in to comment.