Add the ability for Phergie to only respond to targeted messages. That is, ones prefixed with the bot name. Refs #245.
Thank you for your pull request.
This change introduces a soft dependency on the Message plugin. It should either be checked for using $this->plugins->hasPlugin('Message') shortly before it's used or it should be added as a hard dependency in the class docblock and in onLoad(). While an indirect dependency already exists because Remind requires Command and Command requires Message, without this change, that fact is transparent to Remind and it's best that the assumption that this relationship will always exist not be codified.
Please amend your PR to include the above changes so it can be merged. Your contribution is appreciated.
I've added it as a hard dependency only when the option is set, leaving it out otherwise. :)
Edit: Also, rebased onto master since my other PR conflicted with this one.
Add the ability for Phergie to only respond to targeted messages. Tha…
…t is, ones prefixed with the bot name.
Fix mixed config key names.
Explicitly load the Message plugin, but only when we require it.
Can you please also add this to the class docblock?
@uses Phergie_Plugin_Remind pear.phergie.org optional
This will add to the built PEAR package such that PEAR will prompt the user to install Remind as an optional dependency.
Update docblock to include the Remind plugin.
Easy peasy. :)
Merge pull request #246 from Drarok/drarok/targeted-reminders
Implementation of targeted reminders.
Thanks for your contribution!