\Phergie\Irc\Bot\React\PluginProcessorEventEmitterInjector

Plugin processor that injects the plugin with the bot's event emitter if possible.

Summary

Methods
Properties
Constants
process()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

process()

process(\Phergie\Irc\Bot\React\PluginInterface $plugin, \Phergie\Irc\Bot\React\Bot $bot)

Injects the bot's event emitter into the plugin if it implements \Phergie\Irc\Bot\React\EventEmitterAwareInterface.

Parameters

\Phergie\Irc\Bot\React\PluginInterface $plugin

Loaded plugin

\Phergie\Irc\Bot\React\Bot $bot

Bot that loaded the plugin