Plugin.py Documentation

Creating a plugin

A plugin can take the following arguments, of which all are mandatory:

  • plugin - this is the plugin’s module. onInit will take this as an argument, so just pass it back.
  • name - a string containing the name of your plugin, which should be the filename
  • commands - an array of commands in your plugin. see Creating a command.
1
2
3
4
5
from api import plugin

new_plugin = plugin.Plugin(plugin=plugin_in,
    name="testplugin"
    commands=[my_command, my_other_command])