linspector/linspector/notifications/xmpp.py

22 lines
614 B
Python

"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
"""
from logging import getLogger
from linspector.core.notification import Notification
logger = getLogger('linspector')
def get(configuration, environment):
return XMPPNotification(configuration, environment)
class XMPPNotification(Notification):
def __init__(self, configuration, environment):
super().__init__(configuration, environment)
self.__configuration = configuration
self.__environment = environment