diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-09-23 17:43:01 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-09-23 17:43:01 +0200 |
commit | e3b933445fe4b18af6ec462fc40da5f482e447a0 (patch) | |
tree | 7f5c4060cd913d53000e22f269efce603e323cdc /plugins/test.py | |
parent | f34d3172a11190ebfd8030deb5771a55fdb57476 (diff) | |
download | poezio-e3b933445fe4b18af6ec462fc40da5f482e447a0.tar.gz poezio-e3b933445fe4b18af6ec462fc40da5f482e447a0.tar.bz2 poezio-e3b933445fe4b18af6ec462fc40da5f482e447a0.tar.xz poezio-e3b933445fe4b18af6ec462fc40da5f482e447a0.zip |
[teisenbe] first attempt at a plugin system.
Diffstat (limited to 'plugins/test.py')
-rw-r--r-- | plugins/test.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/test.py b/plugins/test.py new file mode 100644 index 00000000..fc7aedc6 --- /dev/null +++ b/plugins/test.py @@ -0,0 +1,12 @@ +class Plugin(BasePlugin): + def init(self): + self.core.information("Plugin loaded") + + def cleanup(self): + self.core.information("Plugin unloaded") + + def on_message(self, message): + self.core.information("Test plugin received message: {}".format(message)) + + def command_plugintest(self, args): + self.core.information("Command! With args {}".format(args)) |