add: webhook
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from events import MARKDOWN_UPDATED_EVENT, markdown_updated
|
||||
from events.WebhookEventHandlers import auto_instantiate
|
||||
from events.WebhookEventHandlers.MarkdownWebhookEventHandlers import MarkdownWebhookEventHandler
|
||||
from misc import Singleton
|
||||
|
||||
|
||||
@auto_instantiate
|
||||
class MarkdownUpdatedWebhookEventHandler(MarkdownWebhookEventHandler, Singleton):
|
||||
def __init__(self):
|
||||
if getattr(self, "_initialized", False):
|
||||
return
|
||||
super().__init__(MARKDOWN_UPDATED_EVENT)
|
||||
markdown_updated.connect(self)
|
||||
self._initialized = True
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user