diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-09-24 22:26:31 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-09-24 22:26:31 +0200 |
commit | f27556747896aeb891ce71cfdd0ac349d68c5b3d (patch) | |
tree | dda3389310142b1783732f27a9393daf228a9c5d /plugins/test.py | |
parent | e3b933445fe4b18af6ec462fc40da5f482e447a0 (diff) | |
download | poezio-f27556747896aeb891ce71cfdd0ac349d68c5b3d.tar.gz poezio-f27556747896aeb891ce71cfdd0ac349d68c5b3d.tar.bz2 poezio-f27556747896aeb891ce71cfdd0ac349d68c5b3d.tar.xz poezio-f27556747896aeb891ce71cfdd0ac349d68c5b3d.zip |
[teisenbe] Use the imp module to import modules.
Also add a simple translator module
Diffstat (limited to 'plugins/test.py')
-rw-r--r-- | plugins/test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/test.py b/plugins/test.py index fc7aedc6..13ba1e9c 100644 --- a/plugins/test.py +++ b/plugins/test.py @@ -1,5 +1,9 @@ +from plugin import BasePlugin + class Plugin(BasePlugin): def init(self): + self.add_command('plugintest', self.command_plugintest, 'Test command') + self.add_event_handler('message', self.on_message) self.core.information("Plugin loaded") def cleanup(self): |