diff --git a/src/__tests__/bot-commands.test.ts b/src/__tests__/bot-commands.test.ts index 8622cbb..0a11931 100644 --- a/src/__tests__/bot-commands.test.ts +++ b/src/__tests__/bot-commands.test.ts @@ -53,7 +53,7 @@ describe("bot messages", () => { const message = createdMessage( "ru", "demo-app", - "spawn-dock spawn --token pair_demo", + "npx -y @spawn-dock/cli spawn --token pair_demo", "spawndock://spawn?token=pair_demo", ); @@ -62,14 +62,14 @@ describe("bot messages", () => { expect(message).toContain("Нажми на ссылку, чтобы открыть рабочее окружение:"); expect(message).toContain("spawndock://spawn?token=pair_demo"); expect(message).toContain("Или запусти команду локально в терминале:"); - expect(message).toContain("spawn-dock spawn --token pair_demo"); + expect(message).toContain("npx -y @spawn-dock/cli spawn --token pair_demo"); }); it("createdMessage (en) uses English copy", () => { const message = createdMessage( "en", "demo-app", - "spawn-dock spawn --token pair_demo", + "npx -y @spawn-dock/cli spawn --token pair_demo", "spawndock://spawn?token=pair_demo", ); diff --git a/src/bot/polling.ts b/src/bot/polling.ts index f2333d7..cd9ee3e 100644 --- a/src/bot/polling.ts +++ b/src/bot/polling.ts @@ -158,7 +158,7 @@ async function processUpdate(cfg: ReturnType, update: Tele clearTimeout(ackTimeout); const slug = data.project.slug; const token = data.pairingToken.token; - const spawnCmd = `spawn-dock spawn --token ${token}`; + const spawnCmd = `npx -y @spawn-dock/cli spawn --token ${token}`; const spawnLink = `spawndock://spawn?token=${token}`; await sendMessage(cfg.telegramBotToken, msg.chat.id, createdMessage(locale, slug, spawnCmd, spawnLink)); return;