Example #1
0
def launch(pluginName, pipe):
  import api
  module = __import__("plugins." + pluginName)
  api.register("sendline", pipe.send)
  while True:
    line = pipe.recv()
    print("Remote read:" + line)
    api.emitEvent("line", line)
Example #2
0
def __pluginLauncher__(pipe, pluginName):
  import setproctitle
  setproctitle.setproctitle("plugin_" + pluginName)

  import api
  module = __import__("plugins." + pluginName)
  api.register("sendline", pipe.send)
  while True:
    line = pipe.recv()
    print("Remote read:" + line)
    api.emitEvent("line", line)
 def privmsg(self, who, what, where):
   api.emitEvent("line", ":%[email protected] PRIVMSG %s:%s" %(
     who, where, what))