From 2c2871f49dc62fcc96b666b1cf43381ae7666f30 Mon Sep 17 00:00:00 2001 From: Matthew Turland Date: Thu, 23 Apr 2015 20:55:59 -0500 Subject: [PATCH] Updated README configuration example --- README.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index eb39b9e..d808a6a 100644 --- a/README.md +++ b/README.md @@ -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