summaryrefslogtreecommitdiff
path: root/plugins/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/test.py')
-rw-r--r--plugins/test.py4
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):