Default live DM test target to zzib

This commit is contained in:
agent
2026-09-11 13:02:09 +02:00
parent 7e4fb7aa34
commit 7fdc71562a
3 changed files with 12 additions and 7 deletions
+6 -3
View File
@@ -1,19 +1,22 @@
/*
* Veskslop Phase 0 — live DM send test through a running Vesktop instance.
*
* Sanctioned test target: user zzib. Set TEST_DM_USER_ID to their user ID.
* Sanctioned test target: user zzib. Defaults to their user ID.
* This talks to the control socket directly (which must be a real Vesktop,
* not the mock) and paces the command like everything else.
*
* Usage:
* TEST_DM_USER_ID=... pnpm poc:dm
* pnpm poc:dm
* TEST_DM_USER_ID=... TEST_DM_CONTENT="hello" pnpm poc:dm
*/
import { paced } from "./pacing.js";
import { sendVesktopCommand, socketPath } from "./vesktop-socket.js";
const userId = process.env.TEST_DM_USER_ID;
/** zzib — the only sanctioned live-send target. */
const DEFAULT_TEST_DM_USER_ID = "177117296140091393";
const userId = process.env.TEST_DM_USER_ID ?? DEFAULT_TEST_DM_USER_ID;
const content = process.env.TEST_DM_CONTENT ?? "veskslop test dm";
if (!userId) {