Intitial release

This commit is contained in:
John husxdev 2025-04-12 01:40:13 -05:00
parent 299038fbc7
commit fa8caa5116
21 changed files with 1234 additions and 0 deletions

15
utils/webhook_util.py Normal file
View file

@ -0,0 +1,15 @@
from typing import List
from model.common_models import DecompileResult
def validate_webhooks(webhooks: List[str], tags: List[str], sha256: str = "") -> DecompileResult:
valid_webhooks = []
invalid_webhooks = []
for webhook in webhooks:
if webhook and len(webhook) >= 10: # Simple validation - real implementation would check with Discord API
valid_webhooks.append(webhook)
else:
invalid_webhooks.append(webhook)
return DecompileResult(invalid_webhooks, valid_webhooks)