20 lines
433 B
Python
20 lines
433 B
Python
## Copyright © 2026 Olaf Kolkman
|
|
## SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
class BasePlugin:
|
|
name = 'base'
|
|
version = '1.0.0'
|
|
enabled = True
|
|
|
|
def initialize(self, config=None):
|
|
return True
|
|
|
|
def validate_config(self, config):
|
|
return True, 'ok'
|
|
|
|
def handle_event(self, event):
|
|
raise NotImplementedError
|
|
|
|
def health_check(self):
|
|
return {'name': self.name, 'status': 'ok'}
|