Default live DM test target to zzib
This commit is contained in:
+6
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user