Yield from dependency plugin?
<p>I want to make parser plugin, which will translate free form messages to the bot commands and run them from other plugins.
Let's say I have PluginA and PluginB which depends on PluginA. On PluginA I have command:</p>

<pre><code>    @botcmd
    def do_on_a(self, msg):
      yield "yielding first msg from A {}".format(msg)
      sleep(5)
      yield "yielding second msg from A {}".format(msg)
</code></pre>

<p>The only way I found to run it from PluginB is making a list from generator:</p>

<pre><code>    @botcmd
    def get_from_a(self, msg, args):
      yield list(self.get_plugin('PluginA').do_on_A(msg))
</code></pre>

<p>But in this way I'm getting both PluginA messages in one time. Is there are a way to get messages from PluginA when they appears? Also maybe I can just form a bot command in plugin and send it to errbot like I send it from backend?
Something like:</p>

<pre><code>    @botcmd
    def get_from_a(self, msg, args):
      send "!do_on_a"
</code></pre>