feat: webhook backend

This commit is contained in:
Timothy J. Baek
2024-03-20 18:35:02 -07:00
parent 16fe0ee167
commit 2c6e2d5e8a
6 changed files with 60 additions and 2 deletions

View File

@@ -5,6 +5,13 @@ class MESSAGES(str, Enum):
DEFAULT = lambda msg="": f"{msg if msg else ''}"
class WEBHOOK_MESSAGES(str, Enum):
DEFAULT = lambda msg="": f"{msg if msg else ''}"
USER_SIGNUP = lambda username="": (
f"New user signed up: {username}" if username else "New user signed up"
)
class ERROR_MESSAGES(str, Enum):
def __str__(self) -> str:
return super().__str__()