10 lines
265 B
Python
10 lines
265 B
Python
from webapp.models import BaseWebhook
|
|
import logging
|
|
|
|
def processHooks(message: str, eventType: str):
|
|
allHooks = BaseWebhook.objects.all()
|
|
for hook in list(allHooks):
|
|
logging.debug(hook)
|
|
if (hook.plugs[eventType] == True):
|
|
hook.broadcast(message)
|