Fixed previous fix

This commit is contained in:
Frisk 2024-09-15 19:41:16 +02:00
parent 4a07582d5d
commit e256d7cd15

View file

@ -16,6 +16,8 @@ class UpdateDB:
def json(self):
def remove_webhooks(arg):
if not isinstance(arg, str):
return arg
re_match = re.match(r"^(\d{17,20})/[a-zA-Z0-9_-]{68}$", arg)
if re_match is not None:
return f"{re_match.group(1)}/[CENSORED DISCORD WEBHOOK TOKEN]"