Dough Git

commit

Separate the system tag from names with a tilde

commit
e9b213e4c1a88fa11bf0aad4ca147f3ee30cd895
author
Clove Twilight <[email protected]>
date
2026-11-16 09:26
Co-Authored-By: Sandrone <[email protected]>

diff --git a/src/proxy/names.ts b/src/proxy/names.ts
index 31f0f0d..3cd90f0 100644
--- a/src/proxy/names.ts
+++ b/src/proxy/names.ts
@@ -24,7 +24,7 @@ function speakerNames(members: Member[]): string {
 
 // Discord rejects webhook names over 80 chars or containing "discord"
 export function webhookName(members: Member[], tag: string | null): string {
-    const suffix = tag ? ` ${tag}` : "";
+    const suffix = tag ? ` ~ ${tag}` : "";
     const names = speakerNames(members).slice(0, webhookNameLimit - suffix.length);
 
     return `${names}${suffix}`
diff --git a/tests/proxy/names_test.ts b/tests/proxy/names_test.ts
index c1be869..cb2d32e 100644
--- a/tests/proxy/names_test.ts
+++ b/tests/proxy/names_test.ts
@@ -34,7 +34,7 @@ Deno.test("system tag goes on the end and always survives", () => {
     const name = webhookName([longName], "TAG");
 
     assertEquals(name.length, 80);
-    assertEquals(name.endsWith(" TAG"), true);
+    assertEquals(name.endsWith(" ~ TAG"), true);
 });
 
 Deno.test("webhook name dodges the discord ban", () => {