commit to not forget code

This commit is contained in:
2024-10-27 21:18:50 +01:00
parent 804bc24908
commit b774e0d04c
7 changed files with 263 additions and 0 deletions

22
plugins/plugin.py Normal file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env python3
class Plugin(object):
def __init__(self, plugin_manager):
self.plugin_manager = plugin_manager
def activate(self):
pass
def deactivate(self):
pass
def notify_message(self, room, event):
pass
@staticmethod
def command(*args, **options):
def decorator(f):
f._plugin_command = {'options': options}
return f
return decorator